This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes java applet calling jar files.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "java applet calling jar files...." Watch "java applet calling jar files...." New topic
Author

java applet calling jar files....

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
Hi all,
Am using solaris 5.8 OS.
I have a applet on the server and some jar files on my client machine(To reduce the loading time).When I load or call the applet from my browser am not able to call the jar files which are placed on my client machine.I also gave the jar files path to the Netscape JVM classpath.
Its showing Java.lang.NoClassDefFoundError...
Any idea about this.
Need any Query, will give you further details regarding this.
Thanks in Advance.
Torsten Schippel
Ranch Hand

Joined: May 09, 2003
Posts: 62
Hi Senthil,
I guess it's a sandbox problem. Try to place your jar files in the jdk/jre/lib/ext directory. There it should be accessible.
Regards
Torsten
senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
Hi Torsten,
Thanks for the reply.
Let me brief the methods I followed....
First I created few .jars, each jar contains atleast one .class file.
Then I created an applet and an html from where the applet is called from the browser.In the applet tag I used
<Applet code = "ClassName" "Arhive = jar1, jar2, ......" ></applet>
Next I added the jars in my local machine(Client side) amd gave the path of the jars where they are situated in the "Systems Classpath" and also in the "Netscape JVM Classpath".
The Applet stays on the server.
Now when I load the browser and call the applet, the class in the jar1 is not called and showing an "java.lang.NoClassDefFoundError".
This can actually work.But still getting error.
Do u have any idea, about this error.
Any queries, do let me know.
Thanks and Regards.
senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
Hi guys any answers related to my Query...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java applet calling jar files....
 
Similar Threads
placing jar files in tomcat
JAXM Applet Problem
problem : NoClassFound Error
Help needed to compare timestamp
Success: how to self-sign an applet