Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Classpath

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
reply
    Bookmark Topic Watch Topic
  • New Topic