ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadi Abedi <hab...@channelwave.com>
Subject need help with running Java
Date Tue, 14 Nov 2000 16:58:14 GMT
Dear Ant users,

I am trying to execute the following line using ant:

java -classpath C:\java\jars\tools.jar -Dinstall.root=C:\JCC
COM.odi.filter.OSCFP -d C:/destination
C:/src/User.class C:/src/DataObject.class

This my code:
	<target name="post" depends="finalcompile">
		<java classname="COM.odi.filter.OSCFP">
		<sysproperty key="install.root" value="C:\JCC" />
 		<arg value="-d"/>
 		<arg value="C:/destination"/>
 		<arg value="$C:/src/User.class"/>
 		<arg value="$C:/src/DataObject.class"/>
         <classpath>
         	<pathelement path="C:/java/jars/tools.jar" />
         </classpath>
       </java>
	</target>


When I run it on the command line it works but when I try it with Ant I get
the following error:

C:\ant\build.xml:45: java.lang.IllegalAccessError: try to access field
COM.odi.filter.FieldMap.classTable from class
COM.odi.filter.FieldMap$Enumerator
java.lang.IllegalAccessError: try to access field
COM.odi.filter.FieldMap.classTable from class
COM.odi.filter.FieldMap$Enumerator
        at COM.odi.filter.FieldMap$Enumerator.<init>(FieldMap.java)
        at COM.odi.filter.FieldMap.entries(FieldMap.java)
        at COM.odi.filter.OSCFP.checkTransientOverrides(OSCFP.java)
        at COM.odi.filter.OSCFP.filter(OSCFP.java)
        at COM.odi.filter.OSCFP.main(OSCFP.java)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:107)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:245)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)


Does anyone know how to solve this?

Thanks. -- Hadi


Mime
View raw message