• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while using the Eclipse IDE

 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to run my program in Eclipse IDE . however i am getting the following exception while running my program

java.lang.NoClassDefFoundError: HelloWorld
Exception in thread "main"

i have a main in my class . Can anyone help me to fix the problem ?
 
Mathew Mintalm
Ranch Hand
Posts: 103
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it would be better to show us code first.
 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is as follows :-


and the source of the code is :-http://www.jchq.net/mockexams/exam1.htm#Question%2021%29
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So where is your HelloWorld class?
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It ran all right when I tried it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic