ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Urena, Jose M (Jose)" <jose.ur...@verizon.com>
Subject RE: the classes in rt.jar cannot be found during ant build
Date Wed, 04 Apr 2012 14:32:37 GMT
try removing the spaces from the PATH

install JDK to the top of your c:\
c:\jdk1.6.0_24

or set JAVA_HOME using short ~ names for path

set JAVA_HOME=c:\progra~1\java\jdk1.6.0_24
 

-----Original Message-----
From: xsli2 [mailto:xsli2@yahoo.com] 
Sent: Monday, April 02, 2012 5:02 PM
To: user@ant.apache.org
Subject: the classes in rt.jar cannot be found during ant build

Hi,

In my build.xml,
        <property environment="env"/>
         ...
	<path id="project.classpath">
            <fileset dir="${env.JAVA_HOME}">
                <include name="jre/lib/rt.jar"/>
            </fileset>
            ...

The environment variable JAVA_HOME has been set to: C:\Program
Files\Java\jdk1.6.0_24

When I run it, those classes inside rt.jar cannot be found. I have print out, using echo,
the classpath and rt.jar is included in the classpath.

I don't understand why the classes in rt.jar cannot be reached by javac.

Thank you very much.

--
View this message in context: http://ant.1045680.n5.nabble.com/the-classes-in-rt-jar-cannot-be-found-during-ant-build-tp5613684p5613684.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


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


Mime
View raw message