12, 2003 2:53 PM
To: Ant Users List
Subject: Re: Classpath in Java task
> > so my question is how do i get the rt.jar into my Java object's
> > classpath?
>
> You could add the JRE libraries to the classpath you pass in to
>
but i don't want to have to hunt up wh
> the classpathref basically points to a bunch of support jars the ultimate
> java class needs (e.g. antlr.jar) but not rt.jar (who ever needs to add
> rt.jar to their classpath?)
Well, as I understand it the crux of the matter is that your task is
going to be loaded with the system classpath if
> > so my question is how do i get the rt.jar into my Java object's
> > classpath?
>
> You could add the JRE libraries to the classpath you pass in to
>
but i don't want to have to hunt up where the jre is, or require folks using
my task to do so either. i want to be able to pass on the classpath
> so my question is how do i get the rt.jar into my Java object's
> classpath?
You could add the JRE libraries to the classpath you pass in to
is there a way to get the classpath that is in my task and pass
> that on to the Java task (along with that the user specified),
> and/or is that even a g
i am writing a task that wraps a java routine. my (squonking good) copy of
'java development with ant' gives an example of this (p. 491). so in my task
i create a Java object in my execute() and try to use that
problem is that i set the classpath based on the task settings and, when i
run it, i ge