This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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:

More than this, there is nothing.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
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 for more details
I agree. Here's the link:
subject: Determing class path for jar html embed
It's not a secret anymore!