, 2006 1:19 AM
> To: Ant Users List
> Subject: Re: ant javac uses rt.jar even though it isn't in classpath
>
>
> Hmm...
>
> Normally I use eclipse to compile and it is able to compile
> fine as it allows you to have the jdk libraries at the bottom
> of your clas
If you are using the ant command-line script then it's setting a
classpath before it invokes ant's main class. This classpath likely
includes the rt.jar you are trying to avoid, a bad idea if you ask me. I
would downgrade my JDK before I removed classes from rt.jar or moved
another jar in front of
Hmm...
Normally I use eclipse to compile and it is able to compile fine as it allows
you to have the jdk libraries at the bottom of your classpath. I don't think
this would be something that is specific to eclipse so there must be someway to
do this in ant as well?
Maybe it is the bootclasspa
I don't think you can "not" use rt.jar, unless you either:
1) Use the Endorsed API override mechanism if it applies to this
particular API, to pick up this particular API from a different jar
than rt.jar
2) Use a different bootclasspath, to use a different "fixed up" rt.jar
Javac otherwise uses
Hi,
I am trying to compile with ant 1.6.5 using jdk150. This jdk ships with rt.jar
that contains a version of org.w3c.com that I don't want to use. I've run ant
with verbose mode but it does not show that it is using rt.jar in the javac
command but when I remove the offending class from rt.