• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run Client?  RSS feed

 
sabeer
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After successfull compilation, when I run the program I got "NoClassDefinedError". Why??/

Pls Help me,
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your classpath doesn't have the class that you are trying to access.
[ April 29, 2005: Message edited by: Jack Ryan ]
 
sabeer
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I do that?
Are there any flags during compilation?

Thks!
 
Arun
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you run your code give the classpath in the command line.. like this:
instead of
>java Class
give
>java -cp 'path' Class
 
Bhaskar Rao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can also set the classpath by making an entry in the classpath environment variable. You just have to give the path of the JAR containing the class
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!