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

System can't find file!!!(URGENT)

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have some jar files which contains java class files. In NetBeans, I mount all jar files and add them in project. It built the project. But when I execute the project, But one of class file give following error:
java.util.Zip.ZipException:sytem can't find file specified at Scanserver.main
I checked in Scanserver file, it imports java.util.zip.*, then I don't get it why system can't find ZipException file of this package???
Please let me know,
Thanks,
Angela
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It found the ZipException. Scanserver can not find some
file in a zip or a jar.
Check to see what Scanserver does with classes in
java.util.zip and java.util.jar. The problem is
probably in there.
HTH,
Joe
 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe,
Scan Server is trying to open .jar file. But System can't find it. How can I add jar file in the system???
Thanks again,
Angela
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like a path issue in the configuration
of NetBeans, if that is where the execution failure
occurs. Unfortunately, I have never used
NetBeans. But you should be able to control the
directory where NetBeans executes something. Put
the jar file in that directory.
Are you running this in an application server, where
the file system will look different to Scanserver?
You would need to put the jar file within reach of
the Scanserver. Check the documentation for your
application server. You can use the getRealPath()
mthod on a ServletContext to see how the filesystem
appears to a servlet in your app server.
HTH,
Joe
[ January 25, 2002: Message edited by: Joe Gilvary ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic