RE: ant javac uses rt.jar even though it isn't in classpath

2006-06-18 Thread Rainer Noack
, 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

Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Grant Lewis
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

Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Mike Grandmaison
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

Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Dominique Devienne
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