You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by john guthrie <jg...@psynapsetech.net> on 2003/01/16 22:34:35 UTC
IllegalAccessException running main
maybe not an ant problem, but here's my setup:
from build.xml ---
<target name="exec" depends="compile">
<java classname="Main">
<classpath refid="run.classpath"/>
</java>
</target>
from Main.java ---
static public void main(String args[]) throws Exception {
...
}
from my attempt to run 'exec' target ---
local> ant exec
Buildfile: build.xml
init:
compile:
[javac] Compiling 32 source and 0 arg files to /home/jguthrie/dest
exec:
[java] java.lang.IllegalAccessException: Class
org.apache.tools.ant.taskdefs.ExecuteJava can not access a member of
class Main with modifiers "public static"
BUILD SUCCESSFUL
Total time: 25 seconds
how can i get an IllegalAccessException on a "public static"?
thanks.
john
p.s. more oddities when i try to search for "IllegalAccessException" in
the archive (http://marc.theaimsgroup.com/?l=ant-user). i seem to get
kicked out of the search section of ant-users entirely.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>