aspose file tools*
The moose likes JNLP and Web Start and the fly likes java.util.zip.ZipException: The system cannot find the path specified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "java.util.zip.ZipException: The system cannot find the path specified" Watch "java.util.zip.ZipException: The system cannot find the path specified" New topic
Author

java.util.zip.ZipException: The system cannot find the path specified

Suman Mummaneni
Ranch Hand

Joined: Dec 14, 2004
Posts: 87
Hello guy,
I am getting a strange exception when I try to deploy my application using
Java Web Start.
Here is the story...
The application is a client console, which is a Java Swing application. It connects to a server. The server uses a plug-in model, these plug-in can be deployed or removed using the client. After deploying these plug-in can be edited to modify the plug-in properties. Which is more like a Eclipe like of frame work.

Here is the problem....
Now when I run this application as standard Java app it works fine. But when I start it as a web app the plug-in that are deployed at run time or plug-in that were deployed earlier could not be edited. I found out the problem is with the class loading, as JWS does not look for the Manifest file to load classes. So I modified the I am using a custom class loader that obtains the Jar file and loads the Jar file in the classpath recursively so all the dependent Jar files are loaded. But when I run the Java web start using JRE 1.5.0_12 I am getting a zip exception which is given below


The code block that does this job is here


***************************************************************************
Here is the most strange thing
****************************************************************************
When I run the same code using JRE 1.6.0_2 then I get a FileNotFound Exception..
.....
Help me guys .......... I am stuck in this



Suman Mummaneni
Bangalore
India
Maryam Nouhnejad
Ranch Hand

Joined: Oct 04, 2006
Posts: 39
Hey Suman,
Could you solve your problem??
rais patel
Greenhorn

Joined: Nov 26, 2007
Posts: 1
java -jar progname.jar
(or on windows, you might prefer 'javaw -jar progname.jar')

or possibly
jre -cp progname.jar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.util.zip.ZipException: The system cannot find the path specified
 
Similar Threads
Thoroughly Confused about ClassLoading in JAVA
interogating jars for specific classes
New Java, old CORBA
extract directory from current jar
ClassCastException