使用 JNLP 启动具有 Java3D 依赖项的小程序时出现问题
正如标题所述,目前正在尝试使用 JNLP 作为为系统上未安装 Jave3D 的任何用户启动具有 Java3D 依赖项的小程序的方法。不幸的是,当小程序尝试启动时,出现与未找到“subapplet.classname”值有关的错误。
java.net 网站 FourByFour Demo 上提供的示例无法正常工作,这一事实使问题变得更加复杂。因未找到类的相同问题而失败。
带有四乘四演示的 Java JNLP 网页:
已尝试过Firefox 和IE 浏览器没有区别。java.net
网站上使用的代码示例:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=800 height=400
archive="http://download.java.net/media/java3d/webstart/test/j3d-examples.jar,
http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar">
<param name="codebase_lookup" value="false">
<param name="subapplet.classname" value="org.jdesktop.j3d.examples.four_by_four.FourByFour">
<param name="subapplet.displayname" value="Java 3D Four by Four Applet">
<param name="jnlpNumExtensions" value="1">
<param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">
<param name="progressbar" value="true">
<param name="noddraw.check" value="true">
</applet>
As title says currently trying to use JNLP as a means of launching an applet with Java3D dependenices for any user who may not have Jave3D installed on their system. Unfortunately getting an error to do with the 'subapplet.classname' value not being found, while the applet tries to launch..
This problem is compounded by the fact that the example supplied on the java.net website FourByFour Demo isn't working and fails with the same problem of class not found.
Java JNLP webpage with Four by Four Demo:
Have tried with both Firefox & IE browsers with no difference..
Sample of the code used on the java.net website:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=800 height=400
archive="http://download.java.net/media/java3d/webstart/test/j3d-examples.jar,
http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar">
<param name="codebase_lookup" value="false">
<param name="subapplet.classname" value="org.jdesktop.j3d.examples.four_by_four.FourByFour">
<param name="subapplet.displayname" value="Java 3D Four by Four Applet">
<param name="jnlpNumExtensions" value="1">
<param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">
<param name="progressbar" value="true">
<param name="noddraw.check" value="true">
</applet>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java 3D applet 示例仍然使用“org.jdesktop.applet.util.JNLPAppletLauncher”。自 JRE 版本 1.6.0_21-b07 起,此启动器无法正常工作并且不再维护。
遵循“Java 教程:使用 Applet 标签进行部署”h ttp://download-llnw.oracle.com/javase/tutorial/deployment/applet/html.html 我切换到 applet 标签和相应的 jnlp 文件在我的网页上。这需要 JRE 6u10+。以下示例是实时的,可以从此处启动:
Applet incl。加载 Java 3D
JNLP
另请参阅:
Java 3D Web Start 版本
Java Web 入门指南
the Java 3D applet examples still use the 'org.jdesktop.applet.util.JNLPAppletLauncher'. Since JRE-Version 1.6.0_21-b07 this launcher doesn't work properly and is no longer maintained.
Following the 'The Java Tutorial : Deploying With the Applet Tag' h ttp://download-llnw.oracle.com/javase/tutorial/deployment/applet/html.html I switched to the applet-tag and a corresponding jnlp-file on my webpages. This requires JRE 6u10+. The following sample is live and can be launched from here:
Applet incl. loading of Java 3D
JNLP
See also:
Java 3D Web Start Release
Java Web Start Guide