| Author |
Accessing third party jars by an application using Java Web Start
|
Sudhanshu Techie
Greenhorn
Joined: Aug 12, 2004
Posts: 4
|
|
hi! I have developed an application using jbuilder which uses thirdparty jars, i specify the jars in the project properties & the application runs fine , I tried to deploy that application using Java web start ,i copied all the third party jars in the same directory as the jnlp file's directory. my jnlp file has a tag-<jar href="accessor.jar" /> in the manifest file of accessor.jar-I specified :-Class-Path: a1.jar a2.jar...........an.jar since the application access the local file system, i gave <security> <all-permissions/> </security> i signed all the jar files. When i deploy the application i get the following exception java.lang.NoClassDefFoundError: a1/StringData StringData is a class in a1.jar. thus my application cannot access "a1.jar" How do i solve this problem? Thanks Sudhanshu
|
 |
kumari Jain
Ranch Hand
Joined: Jul 28, 2004
Posts: 44
|
|
In addition to the entry in the MANIFEST file, you may also need to add the jar href entry for the 3rd party jar in the jnlp file. <resources> <j2se version="1.2+"/> <jar href="accessor.jar"/> <jar href="a1.jar"/> </resources> Regards, Kumari
|
 |
Sudhanshu Techie
Greenhorn
Joined: Aug 12, 2004
Posts: 4
|
|
hi! i did the same,but the same exception pops up? the application descriptor is :- application-desc main-class="accessor.DataAccess i added <jar href="a1.jar" />,do we need to specify the main class for a1.jar also,i don't think so,just out of curosity i am asking this question. Sudhanshu...... [ August 23, 2004: Message edited by: Sudhanshu Techie ]
|
 |
 |
|
|
subject: Accessing third party jars by an application using Java Web Start
|
|
|