This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Using Web Start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Using Web Start" Watch "Using Web Start" New topic
Author

Using Web Start

Roshan Khan
Greenhorn

Joined: May 28, 2004
Posts: 1
Hi, I am trying to set up Web Start for an application I am working on, but have run into some problems. The program is a series of jars (40+). The structure goes like this

MainDirectory
-Main.jar
-LibraryDirectory
-Other.jar
-OtherOther.jar
-CoreDirectory
-Core.jar
-Gui.jar

If I execute this program locally by running Main.jar, it runs fine. But if I do it over webstart, it says it cannot find any required files. The way it is set up to work is, once it is launched it checks a specific directory on the user harddrive and sees if a few .property files are there. If they are not there, it creates them. This part works properly, I can run the program over webstart and then check that directory, and it will have the neccessary property files.

Next, I read in those property files and they tell me what CoreDirectory classes to use. An example is GuiScreen. This is located in Gui.jar. I can navigate to this file inside the java webstart cache, but my program reads in com/work/GuiScreen and does a loadClass on it, it can not find the class. Shouldn't web start have added all the jars to the classpath? So when I try to do a loadClass on com/work/GuiScreen it should properly load the class? This method works when running locally, but not with webstart.

I also noticed that webstart renamed everything, but this shouldn't be a problem becuase I am only referencing what is inside of jars, right?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Web Start
 
Similar Threads
External Devices and Webstart
WebStart
Is web start my best answer?
confusion about classpath and packages
Package problem in walkthrough