[英]Determing class path for jar html embed
I'm trying to serve an a JAR executable as a web app. 我正在尝试将JAR可执行文件作为网络应用程序提供。 I'm having issues figuring out the class path for the "code" attribute.
我在查明“代码”属性的类路径时遇到问题。 The JAR was originally packaged on a CD-ROM.
JAR最初包装在CD-ROM中。
Double clicking on the JAR itself (BDH.jar) executes "C:\\Program Files\\Java\\jre6\\bin\\javaw.exe" -jar "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\BDH.jar"
双击JAR本身(BDH.jar),执行
"C:\\Program Files\\Java\\jre6\\bin\\javaw.exe" -jar "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\BDH.jar"
Double clicking on the bundled .exe executes "Differential Equations.exe" "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\jre\\bin\\javaw.exe" -Xms134217728 -Xmx268435456 -classpath "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\BDH.jar;C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\lax.jar;" com.zerog.lax.LAX "C:/Documents and Settings/xxxx/My Documents/3. Current Projects/BDH/Differential Equations.lax" "C:/Documents and Settings/xxxx/Local Settings/Temp/lax29DC.tmp"
双击捆绑的.exe将执行“ Differential Equation.exe”
"C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\jre\\bin\\javaw.exe" -Xms134217728 -Xmx268435456 -classpath "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\BDH.jar;C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\lax.jar;" com.zerog.lax.LAX "C:/Documents and Settings/xxxx/My Documents/3. Current Projects/BDH/Differential Equations.lax" "C:/Documents and Settings/xxxx/Local Settings/Temp/lax29DC.tmp"
"C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\jre\\bin\\javaw.exe" -Xms134217728 -Xmx268435456 -classpath "C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\BDH.jar;C:\\Documents and Settings\\xxxx\\My Documents\\3. Current Projects\\BDH\\lax.jar;" com.zerog.lax.LAX "C:/Documents and Settings/xxxx/My Documents/3. Current Projects/BDH/Differential Equations.lax" "C:/Documents and Settings/xxxx/Local Settings/Temp/lax29DC.tmp"
Both of these launch the app successfully. 两者都成功启动了该应用程序。
Oh, I'm using "applet-fu.js" to try and load this. 哦,我正在使用“ applet-fu.js”来尝试加载它。 I found a bunch of likely classes inside BDH.jar and have tried loading them without luck:
我在BDH.jar中发现了一堆可能的类,并尝试在没有运气的情况下加载它们:
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? 希望这项工作有希望吗?
Since this is a double-clickable app, turns out I can't use it as an applet (not without changes, anyway). 由于这是一个可双击的应用程序,因此我不能将其用作小程序(无论如何也不能没有更改)。 Apparently the way to distribute desktop apps over the web is by using JavaWebStart (sometimes called JNLP).
显然,通过Web分发桌面应用程序的方法是使用JavaWebStart(有时称为JNLP)。 See http://download.oracle.com/javase/tutorial/deployment/webstart/index.html for more details.
有关更多详细信息,请参见http://download.oracle.com/javase/tutorial/deployment/webstart/index.html 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.