Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Classpath

 
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?
 
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/
 
Danger, 10,000 volts, very electic .... tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic