Solved

Exception in thread "main"

Posted on 2003-10-30
4
257 Views
Last Modified: 2012-05-04
Experts,
When running my java program I get the following error:
' java.lang.NoClassDefFoundError: reversePolishCalculator
 Exception in thread "main" '

How can I fix it?

kepkeakdi
0
Comment
Question by:keokeakdi
  • 2
4 Comments
 
LVL 5

Expert Comment

by:lwinkenb
Comment Utility
add the directory that reversePolishCalculator.class is in to your classpath.
0
 
LVL 5

Assisted Solution

by:lwinkenb
lwinkenb earned 45 total points
Comment Utility
set CLASSPATH=<path to class file>
0
 
LVL 35

Accepted Solution

by:
TimYates earned 40 total points
Comment Utility
java -cp . reversePolishCalculator

or something

assuming you are trying to run reversePolishCalculator
0
 
LVL 8

Assisted Solution

by:Exceter
Exceter earned 40 total points
Comment Utility
A slight variation: you can also try adding ;.; to the end of your classpath.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now