944,028 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1641
  • Java RSS
Jul 5th, 2006
0

NoClassDefFoundError

Expand Post »
hi ,
today i got an error with :


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

i have gone thru so many links which i found in google but i am unable to solve that problem iam using both eclipse and command prompt.

in both i got the same problem

Can any one help Me?


With Regards.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aruma is offline Offline
5 posts
since Jul 2006
Jul 5th, 2006
0

Re: NoClassDefFoundError

Can you show some of your code, especially any reference to a class called "Loop"? The error is saying that java wants to load a class called Loop, but it can't find it in anywhere in the current classpath.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mgaulin is offline Offline
1 posts
since Nov 2005
Jul 6th, 2006
0

Re: NoClassDefFoundError

set your environment variables.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 6th, 2006
0

Re: NoClassDefFoundError

How are you running the application, through and IDE or the command line?
Reputation Points: 10
Solved Threads: 2
Light Poster
DaSogo is offline Offline
25 posts
since May 2006
Jul 11th, 2006
0

Re: NoClassDefFoundError

hi ,
thanks for ur reply
i tried that program in both IDE and command prompt.In command promp its saying that :noclassdeffounderror.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aruma is offline Offline
5 posts
since Jul 2006
Jul 11th, 2006
0

Re: NoClassDefFoundError

hi ,
Could anyone tell me how to give commandline arguments in Java using Eclipse?
Iam using Windows XP.

best regards,
Aruna
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aruma is offline Offline
5 posts
since Jul 2006
Jul 11th, 2006
0

Re: NoClassDefFoundError

That's a different question

For your first, you need to learn about classpaths. That's well described in any decent beginners' book, no need to repeat that here.

For the second, that all depends on the version of Eclipse. But when you select a class to run you can also supply parameters to it in the runtime configuration dialog.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jul 11th, 2006
0

Re: NoClassDefFoundError

Quote originally posted by aruma ...
hi ,
thanks for ur reply
i tried that program in both IDE and command prompt.In command promp its saying that :noclassdeffounderror.
I assume that you are able to run your app with no prob through the IDE. For the CMD, make sure you change the directory to the path where the java class file is logically stored. You should be able to run it now. If you don't want to have to change to different directories to run your apps every single time, then take the advice that has been given to you already, "LEARN ABOUT SETTING THE CLASSPATH ENVIRONMENT VARIABLE!"
Reputation Points: 10
Solved Threads: 2
Light Poster
DaSogo is offline Offline
25 posts
since May 2006
Jul 12th, 2006
0

Re: NoClassDefFoundError

hi ,

i have done what u told me that problem has been solved.
thank u so much

Best regards,
Aruna
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aruma is offline Offline
5 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Pleeeeeeeease help
Next Thread in Java Forum Timeline: Adding and deleting a column in JTable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC