Page 1 of 1

error msg

Posted: Mon Apr 23, 2001 4:28 pm
by kb
i get this error msg when i try to run my applet..

exception in thread 'main' java.lang.NoClassDefFound Errors:

help pls..

Re: error msg

Posted: Wed Apr 25, 2001 7:13 am
by HY
There's something wrong with your classpath. Make sure the <tt>.class</tt> file is in your classpath.

You're also in the wrong forum. Your question should have been posted <a href="http://www.textpad.com/forum/list.php?f=2">here</a>.

Regards,
HY

Re: error msg

Posted: Wed Apr 25, 2001 12:50 pm
by kb
where can i change the classpath? i have just stared learning java recently.
thanx for all the help i can get...

Re: error msg

Posted: Wed Apr 25, 2001 12:53 pm
by HY
Configure --> Preferences --> Tools --> Run Java Applet

In the Parameters box, add "-classpath [classpath here]" just before $BaseName.

OK?

Re: error msg

Posted: Wed Apr 25, 2001 1:11 pm
by kb
what do I type in [classpath] ? where the Java. exe,appletviewer.exe...resides..?

thanx

Re: error msg

Posted: Wed Apr 25, 2001 1:14 pm
by HY
Nope. you type the path to the directory where your .class files reside.

Re: error msg

Posted: Wed Apr 25, 2001 1:17 pm
by kb
which would change everytime with new project rite ? so we should set them everytime ?

thanx

Re: error msg

Posted: Wed Apr 25, 2001 1:20 pm
by HY
If you set "-classpath ." (full stop character), you don't have to change it everytime.

Re: error msg

Posted: Wed Apr 25, 2001 1:24 pm
by kb
thanx heaps...do we have to put these also " " ?

Re: error msg

Posted: Thu Apr 26, 2001 5:25 am
by HY
no.