Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem launching app through web-server

 
David Irwin
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've developed an application that I would like to launch via webstart. Running the application locally via:



works fine. The application launches with no problem. The jar file also runs fine if I run it using:



However, when I put the same JAR and JNLP file (edited to match the updated directory location) in the webserver directory, I get a java.lang.NoClassDefFoundError exception. Here's the JNLP file:



I'm using the new swing-layout-1.0.jar file (from Netbeans Matisse) and it's included in the JExcel.jar file in a /lib directory. Like I said, it all runs fine when I run the jar file from a command line. My question is this: why does it run fine from the command line but won't run from my web-server?

Thanks,
Dave
[ February 24, 2006: Message edited by: David Irwin ]
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it has something to do with signing the jars. I've read that if you have third party jar file, in order to use it in your webstart application you need to sign it. But you can't because it's not yours. There are couple of solution, one of them is to create another jnlp file in which you refer to the third party jar file and in turn use that jnlp in your main jnlp.
This also might be helpful: http://forum.java.sun.com/thread.jspa?threadID=704775&messageID=4086848
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic