Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing third party jars by an application using Java Web Start

 
Sudhanshu Techie
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic