ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <stre...@healthlanguage.com>
Subject Re: exception from java task
Date Mon, 18 Jun 2001 21:23:40 GMT
PLEASE IGNORE THIS: I found that setting fork="yes" avoids the error.
Apparently, the class was calling System.exit() and I guess that was
causing the exception below.

Thanks.

"Larry V. Streepy, Jr." wrote:
> 
> I'm getting a strange exception when I use the java task:
> 
> D:\LE\cplusle\build.xml:1096: java.lang.IllegalAccessException
> --- Nested Exception ---
> java.lang.IllegalAccessException
>         at java.lang.reflect.Method.invoke(Native Method)
>         at org.apache.tools.ant.taskdefs.ExecuteJava.execute(src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java:127)
>         at org.apache.tools.ant.taskdefs.Java.run(src/main/org/apache/tools/ant/taskdefs/Java.java:260)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(src/main/org/apache/tools/ant/taskdefs/Java.java:123)
>         at org.apache.tools.ant.taskdefs.Java.execute(src/main/org/apache/tools/ant/taskdefs/Java.java:87)
>         at org.apache.tools.ant.Target.execute(src/main/org/apache/tools/ant/Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(src/main/org/apache/tools/ant/Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(src/main/org/apache/tools/ant/Project.java:536)
>         at org.apache.tools.ant.Project.executeTargets(src/main/org/apache/tools/ant/Project.java:510)
>         at org.apache.tools.ant.Main.runBuild(src/main/org/apache/tools/ant/Main.java:421)
>         at org.apache.tools.ant.Main.main(src/main/org/apache/tools/ant/Main.java:149)
> 
> Here is the fragment causing the error:
> 
>     <java classname="com.cyberplus.util.misc.Dos2Unix">
>       <classpath>
>         <pathelement location="${install.lib}/${le.jar.fullclient}"/>
>       </classpath>
>       <arg value="xxx"/>
>     </java>
> 
> I searched the archives and didn't find a single hit on this exception.
> Anyone got any ideas?
> 
> Note that when run from the command line, this class is properly loaded
> and executes.
> 
> --
> Larry V. Streepy, Jr.
> Chief Technical Officer and VP of Engineering
> 
> Health Language, Inc.  -- "We speak the language of healthcare"
> 
> 970/626-5028 (office)           mailto:streepy@healthlanguage.com
> 970/626-4425 (fax)              http://www.healthlanguage.com

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com

Mime
View raw message