ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Barton <...@iRev2.com>
Subject Ant with java.exe vs. oldjava.exe
Date Wed, 19 Jul 2000 16:51:12 GMT
Why does ant fail to compile my project when I run the following?

%JAVA_HOME%\bin\java.exe org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

With the following error.

[javac] error: Package java.lang not found.  Please adjust the classpath so 
that package java.lang is accessible.

And works when I run.

%JAVA_HOME%\bin\oldjava.exe org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 
%8 %9

What is the difference between "java" and "oldjava"?

I'm running Windows 2000 pro, JDK 1.2.2, and ANT 1.1.
All the environment variables are set and the classpath is correct as far 
as I can tell.
I've deleted the ant jars from the tomcat(beta) distribution just to be sure.

--Wes




Mime
View raw message