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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to