Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath

 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to WS and would like to deploy an application I'm developing though this technology.
When I run the jar file all works just fine, but launching it through web start gives me an classnotexception, although all the necessary jars are being dl'ed..

Here's my JNLP file:


And this is what my manifest looks like (of aqt.jar)



The resulting error looks like this:


The org/apache/commons/collections/SequencedHashMap class is located in lib/commons-collections-2.1.1.jar

What am I doing wrong?
 
Somnath Jamdar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I had came across to a very similar problem like u r talking about

I resolved it eventually.

Here are the possible reason why u r code might not be working

1] Any how make sure that ur required JARs (with the latest version) have downloaded by Java Web Starts before launching the app at client end

2] Be sure u signed all JARs with the same key


3] Try to work-around the prob by placing all JARs in the same directory
and in manifest file just give the dot-separated (.) list of JARs so
that during execution of the app at client side it will look-for resources into the application dir (current directory)

I used JNPL for a integrating Java App to a PHP page where my web application is running

Hope this will help u a bit

- Somnath
 
Somnath Jamdar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using -i option while creating a jar

more details at:
http://www-106.ibm.com/developerworks/java/library/j-jar/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic