[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: RE: Referencing java.home in build.xml
From: "Wise, Bowden (Research)" <wisegb () crd ! ge ! com>
Date: 2002-07-30 15:42:59
[Download RAW message or body]
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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic