Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41507 invoked by uid 500); 18 Jun 2003 07:30:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 41353 invoked from network); 18 Jun 2003 07:29:55 -0000 Received: from relay1.tiscali.de (HELO webmail.tiscali.de) (62.26.116.129) by daedalus.apache.org with SMTP; 18 Jun 2003 07:29:55 -0000 Received: from DJ0X820J (80.128.225.123) by webmail.tiscali.de (6.7.018) id 3EEEDDBC0007B6B6 for user@ant.apache.org; Wed, 18 Jun 2003 09:30:04 +0200 Message-ID: <008d01c3356b$8b93d500$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <20030617202436.82696.qmail@web40610.mail.yahoo.com> Subject: Re: Process Fork Failed? Date: Wed, 18 Jun 2003 09:30:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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" To: "Ant Users List" Sent: Tuesday, June 17, 2003 10:24 PM Subject: Re: Process Fork Failed? > Any ideas? This is plaguing me. > > --- Mr james asher 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.(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 > > > > 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" > > > To: > > > Cc: > > > 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 line ): > > > > > > > > > > > > > > > errorProperty="unit-test.failed" > > > > failureProperty="unit-test.failed" fork="yes"> > > > > > > > > > > > > > > path="${java.class.path}"/> > > > > > > > > > > > > > > > > > > > > > > > includes="**/*UTest.class"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > todir="${test.reports}"/> > > > > > > > > > > > > > > > if="unit-test.failed"/> > > > > > > > > > > > > > > > > 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