aspose file tools*
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
Author

Determing class path for jar html embed

James Fishwick
Greenhorn

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:

applet_fu.run(
{'width':'550','height':'320'},
{
'archive':'BDH.jar',
'code':'com/artmedialab/main/BDH.class'
},
'1.4.2',
'<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
Marshal

Joined: Mar 22, 2005
Posts: 41526
    
  53
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


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Determing class path for jar html embed