You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Wes Barton <we...@iRev2.com> on 2000/07/19 18:51:12 UTC

Ant with java.exe vs. oldjava.exe

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