简单的Applet问题:关于jar依赖
我正在使用 JNLP 开发一个小型小程序应用程序。我一共有3罐。 1 个为主,2 个为辅助。使用一些类从支持到主jar。所以我的问题是, 1)我需要在 jnlp 文件中提及所有 3 个 jar 吗? 2) 我需要签署所有这 3 个罐子吗?
现在我只提到 JNLP 资源标签中的主 jar。另外,支持 jar 也没有签名。
当我运行我的小程序时,它工作正常。但在java控制台中给出了很多消息,如下所示,
JNLP2ClassLoader.findClass.....再试一次..
对于主jar中的几乎所有类,
对此有任何帮助,非常感谢!
提前致谢 。
<?xml version="1.0" encoding="UTF-8"?>
<jnlp href="mt_test.jnlp" codebase="/mic/ri/lib/">
<information>
<title>test</title>
<vendor>test</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="java.sun.com/products/autod/j2se"version="1.6+"/…;
<jar href="jmy.jar" main="true" version="0007.0000.0012.0000" download="eager"/>
<property name="jnlp.versionEnabled" value="true"/>
</resources>
<applet-desc name="MIC"main class="com.test.test.JApplet" width="300" height="300">
</applet-desc>
</jnlp>
这是有效的 jnlp 吗?
I am developing a small applet appliaction using JNLP. I have total 3 jar's. one is main and 2 are supporting. using few classes from supporting into main jar. So my question is,
1) Do i need to mention all 3 jar's in jnlp file ?
2) Do i need to sign all these 3 jar's ?
Right now I am mentioning only main jar in resources tag of JNLP. Also supporting jars are not signed as well.
When I run my applet it is working fine. but gives lots of messages in java console as follows,
JNLP2ClassLoader.findClass.....try again..
for almost all the classes in main jar
Any help on this much appreciated !!!
Thanks In Advance .
<?xml version="1.0" encoding="UTF-8"?>
<jnlp href="mt_test.jnlp" codebase="/mic/ri/lib/">
<information>
<title>test</title>
<vendor>test</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="java.sun.com/products/autod/j2se"version="1.6+"/…;
<jar href="jmy.jar" main="true" version="0007.0000.0012.0000" download="eager"/>
<property name="jnlp.versionEnabled" value="true"/>
</resources>
<applet-desc name="MIC"main class="com.test.test.JApplet" width="300" height="300">
</applet-desc>
</jnlp>
Is this valid jnlp ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论