Solved

Exception in thread "main"

Posted on 2003-10-30
4
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

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

Assisted Solution

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

Accepted Solution

by:
TimYates earned 40 total points
ID: 9648942
java -cp . reversePolishCalculator

or something

assuming you are trying to run reversePolishCalculator
0
 
LVL 8

Assisted Solution

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

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

688 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