ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xsli2 <>
Subject the classes in rt.jar cannot be found during ant build
Date Mon, 02 Apr 2012 21:01:48 GMT

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

The environment variable JAVA_HOME has been set to: C:\Program

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:
Sent from the Ant - Users mailing list archive at

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

View raw message