This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Problem while using the Eclipse IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem while using the Eclipse IDE" Watch "Problem while using the Eclipse IDE" New topic
Author

Problem while using the Eclipse IDE

ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

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

Joined: Feb 21, 2010
Posts: 103

I guess it would be better to show us code first.
ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

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

Joined: Oct 13, 2005
Posts: 38045
    
  22
So where is your HelloWorld class?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
It ran all right when I tried it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem while using the Eclipse IDE
 
Similar Threads
overriding var args methods
eclipse and System.console()
Problem invoking a servlet directly from FireFox browser
same error when using XP and Eclipse to run program
problem in executing swing application