• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Determing class path for jar html embed

 
James Fishwick
Greenhorn
Posts: 1
Chrome jQuery PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic