This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 2049
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: 2049
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
 
Similar Threads
class file in jar works when invoked on local machine, but gets "class not found" when run from web
playing audio in an applet and embedding that applet into a jsp or Html file
Deploying Applet
Setting applet path in Java Servlet
a simple examples cannot work.