NoClassDefFoundError

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2006
Posts: 5
Reputation: aruma is an unknown quantity at this point 
Solved Threads: 0
aruma aruma is offline Offline
Newbie Poster

NoClassDefFoundError

 
0
  #1
Jul 5th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 1
Reputation: mgaulin is an unknown quantity at this point 
Solved Threads: 0
mgaulin mgaulin is offline Offline
Newbie Poster

Re: NoClassDefFoundError

 
0
  #2
Jul 5th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: NoClassDefFoundError

 
0
  #3
Jul 6th, 2006
set your environment variables.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 25
Reputation: DaSogo is an unknown quantity at this point 
Solved Threads: 2
DaSogo DaSogo is offline Offline
Light Poster

Re: NoClassDefFoundError

 
0
  #4
Jul 6th, 2006
How are you running the application, through and IDE or the command line?
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 5
Reputation: aruma is an unknown quantity at this point 
Solved Threads: 0
aruma aruma is offline Offline
Newbie Poster

Re: NoClassDefFoundError

 
0
  #5
Jul 11th, 2006
hi ,
thanks for ur reply
i tried that program in both IDE and command prompt.In command promp its saying that :noclassdeffounderror.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 5
Reputation: aruma is an unknown quantity at this point 
Solved Threads: 0
aruma aruma is offline Offline
Newbie Poster

Re: NoClassDefFoundError

 
0
  #6
Jul 11th, 2006
hi ,
Could anyone tell me how to give commandline arguments in Java using Eclipse?
Iam using Windows XP.

best regards,
Aruna
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: NoClassDefFoundError

 
0
  #7
Jul 11th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 25
Reputation: DaSogo is an unknown quantity at this point 
Solved Threads: 2
DaSogo DaSogo is offline Offline
Light Poster

Re: NoClassDefFoundError

 
0
  #8
Jul 11th, 2006
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!"
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 5
Reputation: aruma is an unknown quantity at this point 
Solved Threads: 0
aruma aruma is offline Offline
Newbie Poster

Re: NoClassDefFoundError

 
0
  #9
Jul 12th, 2006
hi ,

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

Best regards,
Aruna
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC