Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86677 invoked by uid 500); 19 Jun 2003 20:24:22 -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 86666 invoked from network); 19 Jun 2003 20:24:22 -0000 Received: from web40604.mail.yahoo.com (66.218.78.141) by daedalus.apache.org with SMTP; 19 Jun 2003 20:24:22 -0000 Message-ID: <20030619202428.55990.qmail@web40604.mail.yahoo.com> Received: from [129.130.221.86] by web40604.mail.yahoo.com via HTTP; Thu, 19 Jun 2003 13:24:28 PDT Date: Thu, 19 Jun 2003 13:24:28 -0700 (PDT) From: James Asher Subject: Re: Process Fork Failed? To: Ant Users List In-Reply-To: <003f01c335e3$c4fba3e0$030200c0@DJ0X820J> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Some updates, the /---/ is not the actual directory name, i'm using it to keep from printing much longer directories, also, i'm not sure if my employer would like me writing them out to a public forum. Sorry if I confused anyone. I've made some headway on the VM issue, although I still get the same error. We have a few instillations of java on our servers here. Despite having my JAVA_HOME being set to one installation of java (java 1.3) the fact that another java installation was on my path (java 1.2.2) caused me to run that version. So everything _seems_ to be correct, by that I mean: - when I run "env" I get that my JAVA_HOME is set to /usr/local/webtech/installed/java-1.3. - when I run "java -version" I get: java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) - when I run "which java" I get: /usr/local/webtech/installed/java-1.3/jre/bin/java I've noticed a slight difference in which java is executed though. I have one in java-1.3/bin and java-1.3/jre/bin, is there any difference there? Thanks to all who are helping me work through this, - James --- Antoine Levy-Lambert wrote: > James, > > first of all I am a bit surprised at the directory > name /---/ , it is not > usual to use the minus sign in paths. > The other strange thing is that Java 1.2 comes ahead > in your path, but you > set JAVA_HOME to java 1.3 > Could you make sure that your JAVA_HOME matches with > your path, maybe this > would help. > Typically in your .profile or login script, you > should have something like > that : > > export JAVA_HOME=/---/java-1.3 > export PATH=${JAVA_HOME}/bin:${PATH} > > this would be the Korn Shell version; if you use C > Shell or something else, > please adapt. > > Your ant -verbose output does not show class not > found exceptions, rather it > looks like the java executable is not found where > ant expects it to be. > > You can try to write a small test program and call > the > org.apache.tools.ant.util.JavaEnvUtils#getJreExecutable > function (which is > static, so it should be easy), > and print the result to System.out > Then you can check whether the result of the > function makes sense and points > to an existing java binary. > > Hope this helps. > > Antoine L�vy-Lambert > > ----- Original Message ----- > From: "James Asher" > To: "Ant Users List" > Sent: Wednesday, June 18, 2003 10:32 PM > Subject: Re: Process Fork Failed? > > > > I looked into the things you suggested, they don't > > seem to help. > > > > JAVA_HOME is set: > > JAVA_HOME=/---/java-1.3 > > > > the java executeable is located in this directory: > > /---/java-1.3/jre/bin/ > > > > when I run a "java -version" I get this output: > > java version "1.2.2" > > Solaris VM (build Solaris_JDK_1.2.2_07a, native > > threads, sunwjit) > > > > > > I'm not too familiar with where the main java jar > > would be ( I'm assuming that's how java is set up, > I > > really don't know for sure ). If that's > confusing, > > then where would I look to find if > > java.lang.UNIXProcess.forkAndExec actually exists? > or > > > org.apache.tools.ant.util.JavaEnvUtils#getJreExecutable > > for that matter? > > > > I appreciate you taking the time to help me out. > > > > - James > > > > > > > > > > > > --- Antoine Levy-Lambert > > > wrote: > > > 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 > === message truncated === __________________________________ 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