File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Error Running an Applet from HTML File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error Running an Applet from HTML File" Watch "Error Running an Applet from HTML File" New topic
Author

Error Running an Applet from HTML File

Stanley Mungai
Ranch Hand

Joined: Dec 09, 2011
Posts: 155

Hi guys I have these two Applets that I want to run from My web browser, I need to start the server app and then the client app on a webpage: I wrote this HTNL to do that:





When I Launch them them This is the Error I get for Both of them:






Can some one Please Assist me in what Kind Of setting I need to make to make the Applets run.
The Applets are running fine on the desktop.





Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
it cant find the class because you did not put the parameter where it will get your jar.
Stanley Mungai
Ranch Hand

Joined: Dec 09, 2011
Posts: 155

The Html file and the Jars are all in the same directory if that is what you mean???
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
I tried myself and even if the html and the jar is in the same folder, you still need to add the 'archive' parameter to specify the jar.

For example:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Running an Applet from HTML File