Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Suman Mummaneni
Ranch Hand
Posts: 96
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Suman,
Could you solve your problem??
 
rais patel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java -jar progname.jar
(or on windows, you might prefer 'javaw -jar progname.jar')

or possibly
jre -cp progname.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic