当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Simple Applet question : About jar dependency

问题描述:

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 ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: