Hi Janet,

yes the individual jars need to be on the classpath. The directory only works 
if the individual *.class files are in the directory tree and not in the jars. 
A directory on the classpath is never searched for jars.

dg

-----Original Message-----
From: Janet Graff <0000004dc9e91b6d-dmarc-requ...@listserv.ua.edu>
To: IBM-MAIN <IBM-MAIN@LISTSERV.UA.EDU>
Sent: Tue, Mar 15, 2016 09:11 PM
Subject: Re: Resolving Java import statements


Sorry Jack, not following the intent.  Are you saying I need to add the 
individual jar files to the CLASSPATH definition?
The CLASSPATH does have the directory containing the required jar file.

Janet

>Jack J. Woehr wrote:
>> for jar in /somedir/*.jar
>>    do
>>         export CLASSPATH=$CLASSPATH:$jar
>>    done 

>Oops, this should say export CLASSPATH=$CLASSPATH:/somedir/$jar

>-- 
>Jack J. Woehr

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to <a 
href="mailto:lists...@listserv.ua.edu";>lists...@listserv.ua.edu</a> with the 
message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to