cybercop23
IS-IT--Management
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.
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.