error msg

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
kb

error msg

Post by kb »

i get this error msg when i try to run my applet..

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

help pls..
HY

Re: error msg

Post 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
kb

Re: error msg

Post by kb »

where can i change the classpath? i have just stared learning java recently.
thanx for all the help i can get...
HY

Re: error msg

Post by HY »

Configure --> Preferences --> Tools --> Run Java Applet

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

OK?
kb

Re: error msg

Post by kb »

what do I type in [classpath] ? where the Java. exe,appletviewer.exe...resides..?

thanx
HY

Re: error msg

Post by HY »

Nope. you type the path to the directory where your .class files reside.
kb

Re: error msg

Post by kb »

which would change everytime with new project rite ? so we should set them everytime ?

thanx
HY

Re: error msg

Post by HY »

If you set "-classpath ." (full stop character), you don't have to change it everytime.
kb

Re: error msg

Post by kb »

thanx heaps...do we have to put these also " " ?
HY

Re: error msg

Post by HY »

no.
Post Reply