jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Problem with Ant Integration (and workaround)
Date Sun, 21 Sep 2003 06:13:17 GMT
Hi Bill

This is a known problem in Eclipse :-) It's the same if you use the
<javac> task in Ant. It will fail under default Eclipse. Because, by
default Eclipse configures the JRE and not the JDK. I heard they're
going to change something in future versions.

That said, you're right, we should definitely improve the getToolsJar.
We'd be happy to get a patch if you have some time...


> -----Original Message-----
> From: Bill Siggelkow [mailto:billsigg@bellsouth.net]
> Sent: 21 September 2003 02:25
> To: cactus-user@jakarta.apache.org
> Subject: Problem with Ant Integration (and workaround)
> I recently had a wierd problem with the Cactus-Ant Integration.  I am
> using
> the 1.6dev-20030907 ant integration jar.  Anyway, the problem I had
> with
> the "cactus" task (attempting to start Tomcat).  When I ran the Ant
> from within Eclipse it failed with the error "Couldn't find tools.jar
> ...".
> However, when I ran the script from the command-line it worked fine.
> traced the problem down to the getToolsJar method of the
> AbstractJavaContainer class.  Basically, what this method does is try
> locate the "tools.jar" in the following location:
> [java.home]/../lib/tools.jar
> This works fine if "java.home" is pointing to something like
> C:\j2dsk1.4.2\jre ... However when running in Eclipse my "java.home"
> C:\Program Files\Java\jre -- and, consequently, the tools.jar couldn't
> found.  My quick-and-dirty workaround was to create the following a
> folder under C:\Program Files\Java and copy the tools.jar there.  It
> like the getToolsJar method could be made a little smarter to handle
> situation.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message