File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes System can't find file!!!(URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "System can Watch "System can New topic
Author

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

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
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

Joined: May 11, 2001
Posts: 152
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

Joined: Jan 16, 2002
Posts: 469
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

Joined: May 11, 2001
Posts: 152
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: System can't find file!!!(URGENT)