You probably need to export the CLASSPATH definition:
export
CLASSPATH=$CLASSPATH:/usr/lpp/zWebSphere/V7R0/optionalLibraries/Apache/Struts/1.1/commons-logging.jar
Due to the idiosyncrasies of unix shells, without "export" it only
creates the variable in the sub-process running the command which ends
as soon as the CLASSPATH= command ends. "export" makes it stick for
subsequent commands.
Adding $CLASSPATH to the start will add the jar to the end of any
existing definition instead of replacing it.
Andrew Rowley
On 16/03/2016 10:41, Janet Graff wrote:
Andrew,
Thank you all so much for your help.
I searched for commons-logging*.jar and found several copies. I tried the
following in the directory with the .java file
CLASSPATH=/usr/lpp/zWebSphere/V7R0/optionalLibraries/Apache/Struts/1.1/commons-logging.jar
javac RemoteServer.java
which resulted in the same error message
RemoteServer.java:19: package org.apache.commons.logging does not exist
import org.apache.commons.logging.Log;
I then downloaded the jar from the web site to my windows machine, then I
uploaded it to the mainframe in binary to the same directory as my .java file
CLASSPATH=/u/vendor/jig/jrobotremoteserver-master/commons-logging-1.2.jar
javac RemoteServer.java
and got the same error message.
I'm doing something wrong I know it.
Any help?
Janet
--
Andrew Rowley
Black Hill Software
+61 413 302 386
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN