ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: don't want to use JAVA_HOME
Date Thu, 30 May 2002 20:37:02 GMT
You need to add c:\jdk1.3.1_02\lib\tools.jar into classpath.

- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
{ http://www.inventigo.com/ } Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)


-----Original Message-----
From: Robert Priest [mailto:Robert.Priest@bentley.com]
Sent: Thursday, May 30, 2002 1:30 PM
To: 'Ant Users List'
Subject: don't want to use JAVA_HOME


I am using ant 1.5.beta1

I am calling ant like so:

c:\jdk1.3.1_02\bin\java -Dant.home=D:\Test\jakarta\jakarta-ant-1.5Beta1\
org.apache.tools.ant.Main 


but that gives me the following error when it runs:

he\catalina\authenticator\BasicAuthenticator.java
    [javac] Modern compiler not found - looking for classic compiler

D:\pw\development\src\dms\web\src\java\buildwebdav.xml:24: Cannot use
classic co
mpiler, as it is not available.  A common solution is to set the environment
var
iable JAVA_HOME to your jdk directory.




but I don't want to have to set JAVA_HOME. 

Is there another way to rectify this problem?


here is what one of the <javac> tasks I run looks like:

 <javac srcdir="${WEB_SOURCE}" destdir="${WEB_OUT}"
     includes="patches/cocoon/1.8.2/**,
               patches/slide/1.0.16/**,
               patches/tomcat/4.0.3/**,
               com/projectwise/webdav/**,
               com/projectwise/wrappers/**,
               com/projectwise/utils/**,
               com/projectwise/stores/**"
     listfiles="yes"
     />
    </target>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message