ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simeon Fitch <meta...@yahoo.com>
Subject Help: Upgrade to JDK 1.3 causes fork to fail
Date Tue, 14 Nov 2000 15:57:59 GMT
I just upgraded from the Blackdown JDK 1.2.2 to
Blackdown JDK 1.3 FCS for RH6.2 x86. In my build file
I have a target called "run" which launches Antidote,
that looks as follows:  

    <target name="run" depends="compile"
description="Run Antidote">
    <java classname="org.apache.tools.ant.gui.Main" 
          fork="yes" 
          dir="${user.home}">
      <jvmarg value="-Djava.compiler=NONE"/>
      <classpath>
        <pathelement location="${build.classes}"/>
        <pathelement location="${ant.jar}"/>
      </classpath>
    </java>
  </target>



When I run the target I now get an exception that I'm
not sure how to track down (see below) Any hints would
be appreciated.

$: ant -verbose run
Ant version 1.2 compiled on October 24 2000

Searching for build.xml ...
Searching in /home/sfitch/jakarta-ant/src/antidote
Buildfile:
/home/sfitch/jakarta-ant/src/antidote/build.xml
Detected Java Version: 1.3
Detected OS: Linux
Project base dir set to:
/home/sfitch/jakarta-ant/src/antidote
 [property] Loading /home/sfitch/.ant.properties
Build sequence for target `run' is [prepare, compile,
run]
Complete build sequence is [prepare, compile, run,
clean, javadocs, jar]
     [copy] Copying 1 files to
/home/sfitch/build/antidote/classes
     [copy] Copying
/home/sfitch/jakarta-ant/src/antidote/org/apache/tools/ant/gui/version.txt
to
/home/sfitch/build/antidote/classes/org/apache/tools/ant/gui/version.txt
Copy:
/home/sfitch/jakarta-ant/src/antidote/org/apache/tools/ant/gui/version.txt
>
/home/sfitch/build/antidote/classes/org/apache/tools/ant/gui/version.txt
Replacing: @VERSION@ -> 0.1
Replacing: @DATE@ -> November 14 2000
     [java] Forking java -Djava.compiler=NONE
-classpath
/home/sfitch/build/antidote/classes:/home/sfitch/build/ant/lib/ant.jar
org.apache.tools.ant.gui.Main

BUILD FAILED

/home/sfitch/jakarta-ant/src/antidote/build.xml:116:
java.io.IOException: java: cannot execute
java.io.IOException: java: cannot execute
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:137)
	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.exec(Execute.java:390)
	at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
	at
org.apache.tools.ant.taskdefs.Java.run(Java.java:270)
	at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:111)
	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)




__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

Mime
View raw message