ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Betin" <ABe...@futuretrade.com>
Subject RE: <java> can not find rt.jar classes
Date Tue, 19 Nov 2002 22:18:09 GMT
I ran into this same problem, trying to invoke 
Retroguard obfuscator using <java> tag,

manually adding rt.jar to CLASSPATH seemed
so ugly that I preferred to fork VM instead.

Anything we missing here or is it just by design so?

Thanks,
~Alexei

> -----Original Message-----
> From: Gergely Gati [mailto:gergely@isis-server.isis.vanderbilt.edu]
> Sent: Tuesday, November 19, 2002 12:33 PM
> To: Ant Users List (E-mail)
> Subject: <java> can not find rt.jar classes
> 
> 
> Hi,
> 
> I would like to invoke castor (as a java application) from a 
> java task,
> and I get 
> 
>  [java] java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl
> 
> I checked it and this class is located in rt.jar (I use JDK 1.4.1).
> 
> My CLASSPATH environment variable is not set and I would like 
> to keep it
> that way (so developers only have to set ANT_HOME).
> 
> Why can't the <java> task not see this class in rt.jar? (I do 
> not use fork
> and compiling with ANT does work.)
> 
> Thanks,
> Gergely
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message