File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes NoClasDefoundException netscape.javascript.JSObject Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "NoClasDefoundException netscape.javascript.JSObject" Watch "NoClasDefoundException netscape.javascript.JSObject" New topic
Author

NoClasDefoundException netscape.javascript.JSObject

Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
I have an applet which compiles ok. but NoClassDefoundException is thrown
when run with appletviewer. The netscape.javascript.JSObject is in a plugin jar file under lib. it is in the class path.
I have tried different methods try to pindown the problem but no success.
But interesting enough, when I extracted the jar file and put the package in the same directory as the applet and the html file, I got a different run time exception and this time I have no clue at all.
The exception was:

after unjar the plugin and move the pacakage:

Could anyone offer some help, please.
Thanks.
bing
[ April 29, 2004: Message edited by: Bing Yuen ]
[ April 29, 2004: Message edited by: Bing Yuen ]
Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
Well, for the second time I ended up answering my question myself.
Actually the Sun answered this in one of its documentation. If you ever
wonderin or be asked the simillar question, redirect to this page:
web page
This has solved my problem flawlessly.
Bing
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Moving this thread to the HTML/Javascript forum.
Please continue this disucssion there. Thank you


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
 
subject: NoClasDefoundException netscape.javascript.JSObject
 
Threads others viewed
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page
NoClassDefFoundError
NX: Unspecified exceptions
celleditor won't stick
jsp loading applet using java plug-in
IntelliJ Java IDE