ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Fernandes <savage_ant2...@yahoo.com>
Subject javac cannot find package even though it is present in the classpath
Date Fri, 15 Dec 2000 22:14:53 GMT
Hi,
 
    I started working on ant about a week back. I use
ant on Win NT. I am facing a fairly strange problem. I
use javac to compile few jav files, out of which a
file imports the package 'oracle.jdbc.*'. This package
is contained in the file classes12_01.jar. Even though
classes12_01.jar is in the system Classpath it can't
seem to find it, and gives the following error -
.
.
.
    [javac] Compilation args: -d
C:\dominic\TestAnt\classes -classpath
"C:\dominic\classes12_01.jar;C:\dominic\TestAnt\classes;C:\put-039;C:\ant\lib\ant.jar;C:\Program
Files\JavaSoft\Jaxp1.0.1\jaxp.jar; C:\Program
Files\JavaSoft\Jaxp1.0.1\parser.jar;
C:\jdk1.3\lib\tools.jar;
C:\dominic\sodlib.jar;C:\dominic\sodclient.jar;C:
\dominic\sodserver.jar;C:\dominic\sodrequest.jar;C:\dominic\3270;C:\iPlanet\iAS6
\ias\usr\java\lib\tools.jar;C:\iPlanet\iAS6\ias\usr\java\jre\lib\rt.jar;C:\iplan
et\ias6\ias\classes\java\activation.jar;C:\iplanet\ias6\ias\classes\java\jms.jar
;C:\iplanet\ias6\ias\classes\java\servlet.jar;C:\iplanet\ias6\ias\classes\java\m
ail.jar;C:\iplanet\ias6\ias\classes\java\xml.jar;C:\iplanet\ias6\ias\lib\java\jd
bc20.jar;C:\iplanet\ias6\ias\lib\java\javax.jar;C:\iplanet\ias6\ias\lib\java\kfc
jdk11.jar;C:\iplanet\ias6\ias\lib\java;C:\iplanet\ias6\ias\lib\java\ldapjdk.jar;
C:\iplanet\ias6\ias\APPS;C:\iplanet\ias6\ias\lib\java\ktjdk11.jar;C:\iplanet\ias
6\ias\lib\java\kadmin.jar;C:\ant\lib\jaxp.jar;C:\ant\lib\parser.jar;C:\iPlanet\i
as6\ias\usr\java\lib\tools.jar" -sourcepath
C:\put-039\Code\Phase1 -g -O
    [javac] File to be compiled:
    C:\put-039\Code\Phase1\util\WebStatLogger.java

    [javac]
C:\put-039\Code\Phase1\util\WebStatLogger.java:6:
package oracle.jdbc does not exist
    [javac] import oracle.jdbc.*;
    [javac] ^
    [javac] Note:
C:\put-039\Code\Phase1\util\WebStatLogger.java uses or
overrides a deprecated API.
    [javac] Note: Recompile with -deprecation for
details.
    [javac] 1 error

BUILD FAILED

C:\ant\lib\Test.xml:52: Compile failed, messages
should have been provided.

Total time: 7 seconds

The classpath displayed here shows that
classes12_01.jar is present in the classpath. When I
compile the same file at the command prompt using the
same iPlanet javac, it compiles fine.

Does anyone have suggestions on what I may overlooking
here.

Thanks,
  Dominic

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Mime
View raw message