aspose file tools*
The moose likes JNLP and Web Start and the fly likes Accessing third party jars by an application using Java Web Start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Accessing third party jars by an application using Java Web Start" Watch "Accessing third party jars by an application using Java Web Start" New topic
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing third party jars by an application using Java Web Start
 
Similar Threads
Launch Exception encountered in Java Web Start
jmf on web start
JARSigningException when deploying a jar on webstart
JNLP signed jars second jnlp
Reference a jar