ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Roewen" <>
Subject Java 1.4 & package javax.xml
Date Thu, 02 Jan 2003 07:54:38 GMT

I'm unable to get Ant to compile due to a problem with it not finding the
javax.xml package, and I'm using Sun's Java 1.4.0 SDK.

Here is the main culprit of my problems:

    [javac] Compiling 1 source file to C:\...\classes
    [javac] C:\...\...\core\aiml\
            package javax.xml does not exist
    [javac] import javax.xml.parsers;


I am running Windows 2000. My ANT_HOME is set correctly (-version
and -diagnostic switches work). And my JAVA_HOME is set to C:\Java\1.4.0 and
ANT_HOME\bin is in my PATH variable.

I have multiple JDKs installed (1.1.x, 1.2.1, 1.3.1 and 1.4.0), and 1.2.1 is
my default JDK:

java -version == 1.2.1
%JAVA_HOME%\bin\java -version == 1.4.0

I'm pretty sure it's using the right JDK, as it compiles with the
java.util.prefs package (which was introduced in 1.4.0).

Help would be very much appreciated.

Jon :)

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message