wood burning stoves
The moose likes Applets and the fly likes Determing class path for jar html embed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Determing class path for jar html embed" Watch "Determing class path for jar html embed" New topic

Determing class path for jar html embed

James Fishwick

Joined: Mar 18, 2011
Posts: 1

I'm trying to serve an a JAR executable as a web app. I'm having issues figuring out the class path for the "code" attribute. The JAR was originally packaged on a CD-ROM.

Double clicking on the JAR itself (BDH.jar) executes

Double clicking on the bundled .exe executes

Both of these launch the app successfully.

Oh, I'm using "applet-fu.js" to try and load this. I found a bunch of likely classes inside BDH.jar and have tried loading them without luck:

'<p>Please install Java.</p>'

Any hope of making this work? Here is my page: http://sandbox.jamesfishwick.com/applet/index.html

More than this, there is nothing.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
If this is a double-clickable app, then you can't use it as an applet (not without changes, anyway). The way to distribute desktop apps over the web is by using JavaWebStart (sometimes called JNLP). See http://download.oracle.com/javase/tutorial/deployment/webstart/index.html for more details
I agree. Here's the link: http://aspose.com/file-tools
subject: Determing class path for jar html embed
It's not a secret anymore!