ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Andrew.Beac...@nokia.com>
Subject RE: URGENT HELP! Ant suddenly failing
Date Mon, 22 Jul 2002 17:01:51 GMT
I get the feeling that your JAVA_HOME environment variable is not set 
properly, or that the JRE is not in the right place.

See the first few messages starting with "dropping", it seems to have 
the "jre" directory listed twice.  I would start with checking where 
your java is installed..

Andy.

--
Andrew Beacock
Principal Software Engineer
Nokia
NMP/MSW/SSP/MMS

> -----Original Message-----
> From: ext [mailto:kynn@panix.com]
> Sent: Monday, July 22, 2002 11:18 AM
> To: ant-user@jakarta.apache.org
> Subject: URGENT HELP! Ant suddenly failing
> 
> 
> 
> 
> 
> 
> Ant is suddenly failing to build a target (jjtree), even though I'm
> using a build file that has been working (and pretty stable) for the
> last several months.  I must have done something between late Friday
> and this morning to cause this sudden failure, but I can't figure out
> what it is.  The verbose output tells me nothing (it is given below).
> 
> I have already verified that jjtree works properly when invoked by
> itself.
> 
> Any help in interpreting the error message or with troubleshooting
> this problem would be much appreciated.
> 
> Thank you very much in advance.
> 
> kj
> 
> PS:  Please Cc me in your replies.
> 
> 
>   % ant -verbose jjtree
>   Apache Ant version 1.5Beta2 compiled on May 31 2002
>   Buildfile: build.xml
>   Detected Java version: 1.3 in: /usr/local/opt/java/jdk1.3.1_02/jre
>   Detected OS: Linux
>   parsing buildfile build.xml with URI = 
> file:/home/kynn/myproj/build.xml
>   Project base dir set to: /home/kynn/myproj
>   Build sequence for target `jjtree' is [jjtree]
>   Complete build sequence is [jjtree, init, sign, javacc, 
> compile, jar, clean, verify, dist]
>   
>   jjtree:
>   dropping /usr/local/opt/java/jdk1.3.1_02/jre/jre/lib/rt.jar 
> from path as it doesn't exist
>   dropping 
> /usr/local/opt/java/jdk1.3.1_02/Classes/classes.jar from path 
> as it doesn't exist
>   dropping /usr/local/opt/java/jdk1.3.1_02/Classes/ui.jar 
> from path as it doesn't exist
>      [jjtree] Executing 'java' with arguments:
>      [jjtree] '-Dinstall.root=/home/kynn/java/javacc2.1/bin/lib'
>      [jjtree] '-classpath'
>      [jjtree] 
> '/home/kynn/java/javacc2.1/bin/lib/JavaCC.zip:/usr/local/opt/j
> ava/jdk1.3.1_02/jre/lib/rt.jar'
>      [jjtree] 'COM.sun.labs.jjtree.Main'
>      [jjtree] 
> '-OUTPUT_DIRECTORY:/home/kynn/myproj/com/site/my/package/parser'
>      [jjtree] 
> '/home/kynn/myproj/com/site/my/package/parser/Parser.jjt'
>      [jjtree] The ' characters around the executable and arguments are
>      [jjtree] not part of the command.
> 
> BUILD FAILED
> /home/kynn/myproj/build.xml:27: Failed to launch JJTree
>         at 
> org.apache.tools.ant.taskdefs.optional.javacc.JJTree.execute(J
> JTree.java)
>         at org.apache.tools.ant.Task.perform(Task.java)
>         at org.apache.tools.ant.Target.execute(Target.java)
>         at org.apache.tools.ant.Target.performTasks(Target.java)
>         at org.apache.tools.ant.Project.executeTarget(Project.java)
>         at org.apache.tools.ant.Project.executeTargets(Project.java)
>         at org.apache.tools.ant.Main.runBuild(Main.java)
>         at org.apache.tools.ant.Main.start(Main.java)
>         at org.apache.tools.ant.Main.main(Main.java)
> --- Nested Exception ---
> java.io.IOException: java: cannot execute
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:139)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:551)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at 
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.ex
> ec(Execute.java)
>         at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java)
>         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java)
>         at 
> org.apache.tools.ant.taskdefs.optional.javacc.JJTree.execute(J
> JTree.java)
>         at org.apache.tools.ant.Task.perform(Task.java)
>         at org.apache.tools.ant.Target.execute(Target.java)
>         at org.apache.tools.ant.Target.performTasks(Target.java)
>         at org.apache.tools.ant.Project.executeTarget(Project.java)
>         at org.apache.tools.ant.Project.executeTargets(Project.java)
>         at org.apache.tools.ant.Main.runBuild(Main.java)
>         at org.apache.tools.ant.Main.start(Main.java)
>         at org.apache.tools.ant.Main.main(Main.java)
> 
> Total time: 1 second
> 
> 
> 
> 
> --
> 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>


Mime
View raw message