File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41128
    
  45
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
 
Don't get me started about those stupid light bulbs.
 
subject: Determing class path for jar html embed
 
Similar Threads
problems with CGLIB and hibernate
unable to launch the application
Test class cannot find other class
jar runs on desktop but not laptop
Trouble with running Maven Tomcat plugin through Eclipse