Solved

Exception in thread "main"

Posted on 2003-10-30
4
263 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
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java JRE greater than 1.6 5 63
session migration servlets 2 36
ForLoop Example 3 49
Running JavaFX on JDeveloper 12C 1 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

777 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