ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wise, Bowden (Research)" <wis...@crd.ge.com>
Subject RE: Referencing java.home in build.xml
Date Tue, 30 Jul 2002 15:42:59 GMT
Diane:

That's very useful, I can now reference the JAVA_HOME env
variable like:
  <property name="rt.jar"         value="${env.JAVA_HOME}\jre\lib\rt.jar"/>
  <property name="tools.jar"      value="${env.JAVA_HOME}\lib\tools.jar"/>

What I am trying to do is create a classpath to pass to java when
running Castor.  e.g., 
  <property name="CASTORCP"       value="${rt.jar};${tools.jar};${castor.jar};${xerces.jar}"/>

CASTORCP is
"C:\cvssrc\mta1\lib\ant-1.4.1.jar;C:\cvssrc\mta1\lib\castor-0.9.3.19.jar;
C:\cvssrc\mta1\lib\castor-0.9.3.19-xml.jar;C:\cvssrc\mta
1\lib\xercesImpl-2.0.1.jar;C:\cvssrc\mta1\lib\xmlParserAPIs-2.0.1.jar;C:\j2sdk1.
4.0\lib\tools.jar

but I get this error:

C:\cvssrc\mta1\build.xml:198: java.lang.IllegalAccessError: class sun.reflect.Ge
neratedConstructorAccessor7 cannot access its superclass sun.reflect.Constructor
AccessorImpl

What happen?!

Thanks


>-----Original Message-----
>From: Diane Holt [mailto:	
>Sent: Monday, July 29, 2002 6:16 PM
>To: Ant Users List
>Subject: RE: Referencing java.home in build.xml
>
>
>--- Dominique Devienne <DDevienne@lgc.com> wrote:
>> <property name="tools.jar" 
>location="${java.home}/../lib/tools.jar" />
>
>Or reference $JAVA_HOME instead of ${java.home} (see the 'environment'
>attribute of <property>).
>
>Diane
>
>=====
>(holtdl@yahoo.com)
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>--
>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