Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello all. Here's my issue. I h

Status
Not open for further replies.

cybercop23

IS-IT--Management
Aug 12, 2001
103
US
Hello all.
Here's my issue.

I have a script that uses a JDBC to go fetch some info from a remote proprierary database system.
Under AIX (Unix) it works great. All, .jar, .class, .java files are located in the current directory.

Here's the script:
/usr/jdk_base/bin/jre -cp DataMinerJDBC.jar:./ RunQuery "SELECT * FROM SA_ItemData" lab

I need to be able to run this from a WIN98/2K machine.
So, I've downloaded and installed the laterst JRE (j2re1.4.0).

Here's the script I'm using on the Windows machine:
java -jar -cp ..\DataMinerJDBC.jar;.\ RunQuery "SELECT * FROM SA_ItemData" lab

And.....
This is the error that I get back.

Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init><Unknown Source)
at java.util.jar.JarFile.<init><Unknown Source)
at java.util.jar.JarFile.<init><Unknown Source)

Do the .jar, .class, .java files need to go somewhere specific? Am I not typing/classifying something correctly?

Any help would be much appreciated.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top