ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: Process Fork Failed?
Date Wed, 18 Jun 2003 07:30:51 GMT
Hi James,

this bit looks like it is the center of your problem :

> java.io.IOException: /---/java-1.3/jre/bin/java:
> cannot execute
>         at java.lang.UNIXProcess.forkAndExec(Native
> Method)

Can it be that the environment variable JAVA_HOME is not set on your system
?
If it is not set, set it and retry.

Other possibility : can it be that you have a JDK installed somewhere under
java-1.3, but you have deleted the JRE bit,
or you have the JRE bit but there is not java executable where ant expects
it ?


The JRE executable is sought by ant in
org.apache.tools.ant.util.JavaEnvUtils#getJreExecutable

> java.io.IOException: /---/java-1.3/jre/bin/java:
> cannot execute
>         at java.lang.UNIXProcess.forkAndExec(Native
> Method)

If all of this does not help, tell us which JDK and which operating system
are you working under.

Cheers,

Antoine

----- Original Message -----
From: "James Asher" <thejoker101@yahoo.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, June 17, 2003 10:24 PM
Subject: Re: Process Fork Failed?


> Any ideas?  This is plaguing me.
>
> --- Mr james asher <thejoker101@yahoo.com> wrote:
> > This is the output I get when I run it in verbose
> > mode:
> >
> > BUILD FAILED
> > file:/----/WEB-INF/build.xml:212: Process fork
> > failed.
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnit
Task.java:682)
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:554)
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:527)
> >         at
> > org.apache.tools.ant.Task.perform(Task.java:319)
> >         at
> > org.apache.tools.ant.Target.execute(Target.java:309)
> >         at
> >
> org.apache.tools.ant.Target.performTasks(Target.java:336)
> >         at
> >
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> >         at
> >
> org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> >         at
> > org.apache.tools.ant.Main.runBuild(Main.java:610)
> >         at
> > org.apache.tools.ant.Main.start(Main.java:196)
> >         at
> > org.apache.tools.ant.Main.main(Main.java:235)
> > --- Nested Exception ---
> > java.io.IOException: /---/java-1.3/jre/bin/java:
> > cannot execute
> >         at java.lang.UNIXProcess.forkAndExec(Native
> > Method)
> >         at
> > java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
> >         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.jav
a:647)
> >         at
> >
> org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417)
> >         at
> >
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428)
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnit
Task.java:680)
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:554)
> >         at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:527)
> >         at
> > org.apache.tools.ant.Task.perform(Task.java:319)
> >         at
> > org.apache.tools.ant.Target.execute(Target.java:309)
> >         at
> >
> org.apache.tools.ant.Target.performTasks(Target.java:336)
> >         at
> >
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> >         at
> >
> org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> >         at
> > org.apache.tools.ant.Main.runBuild(Main.java:610)
> >         at
> > org.apache.tools.ant.Main.start(Main.java:196)
> >         at
> > org.apache.tools.ant.Main.main(Main.java:235)
> >
> >
> >
> >
> > --- Antoine Levy-Lambert
> > <levylambert@tiscali-dsl.de>
> > wrote:
> > > Can you try to run ant in verbose mode
> > > ant -verbose
> > > you will get more output, maybe telling you where
> > > the problem is
> > > Antoine
> > > ----- Original Message -----
> > > From: "Mr james asher" <thejoker101@yahoo.com>
> > > To: <user@ant.apache.org>
> > > Cc: <thejoker101@yahoo.com>
> > > Sent: Monday, June 16, 2003 10:18 PM
> > > Subject: Process Fork Failed?
> > >
> > >
> > > > I get this message when I run my code as below:
> > > >
> > > > test:
> > > >
> > > > BUILD FAILED
> > > > -------/build.xml:213: Process fork failed.
> > > >
> > > >
> > > > the code( line 213 is the <classpath> line ):
> > > >
> > > >    <target name="test" depends="test-compile">
> > > >        <junit printsummary="false"
> > > > errorProperty="unit-test.failed"
> > > > failureProperty="unit-test.failed" fork="yes">
> > > >            <classpath>
> > > >               <path refid="test.classpath"/>
> > > >               <pathelement
> > > path="${java.class.path}"/>
> > > >            </classpath>
> > > >        <formatter type="brief" usefile="false"/>
> > > >            <formatter type="xml"/>
> > > >            <batchtest todir="${test.reports}">
> > > >               <fileset dir="${build.dir}"
> > > > includes="**/*UTest.class"/>
> > > >            </batchtest>
> > > >        </junit>
> > > >
> > > >        <junitreport todir="${test.reports}">
> > > >            <fileset dir="${test.reports}">
> > > >                <include name="TEST-*.xml"/>
> > > >            </fileset>
> > > >            <report format="frames"
> > > > todir="${test.reports}"/>
> > > >        </junitreport>
> > > >
> > > >        <fail message="Tests failed. Check log
> > > and/or
> > > > reports, currently in ${test.reports}"
> > > > if="unit-test.failed"/>
> > > >    </target>
> > > >
> > > >
> > > > What's going on? Am I missing something? I can't
> > > get
> > > > fork to work.
> > > >
> > > > Please help!
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > user-unsubscribe@ant.apache.org
> > > > For additional commands, e-mail:
> > > user-help@ant.apache.org
> > > >
> > > >
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > > user-help@ant.apache.org
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message