From owner-freebsd-java@FreeBSD.ORG Tue Aug 14 10:04:55 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D9FC16A41A for ; Tue, 14 Aug 2007 10:04:55 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 3155813C4F3 for ; Tue, 14 Aug 2007 10:04:54 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out3.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1IKtGf-0006AH-If for ; Tue, 14 Aug 2007 12:04:53 +0200 Received: (qmail 59538 invoked from network); 14 Aug 2007 10:04:52 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 14 Aug 2007 10:04:52 -0000 Date: Tue, 14 Aug 2007 12:04:51 +0200 To: freebsd-java@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: User-Agent: Opera Mail/9.22 (FreeBSD) Subject: Re: jdk1.6: Runtime.exec fails always X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 10:04:55 -0000 On Tue, 14 Aug 2007 00:41:54 +0200, Ronald Klop = wrote: > When I run this programm, I always get exitCode =3D=3D 255. > $ java -version > java version "1.6.0_01-p1" > Java(TM) SE Runtime Environment (build = > 1.6.0_01-p1-root_12_aug_2007_22_50-b00) > Java HotSpot(TM) Client VM (build = > 1.6.0_01-p1-root_12_aug_2007_22_50-b00, mixed mode) > $ uname -a > FreeBSD ronald.office.base.nl 6.2-STABLE FreeBSD 6.2-STABLE #74: Sat J= ul = > 14 13:11:40 CEST 2007 = > root@ronald.office.base.nl:/usr/obj/usr/src/sys/RONALD i386 > > I found it with other code, but this is my small testcase to reproduce= = > it. > > Can people reproduce this? > > Ronald. > > > > import java.io.IOException; > > final class ExecTest { > > public static void main(String[] args) throws IOException, = > InterruptedException { > Runtime rt =3D Runtime.getRuntime(); > Process p =3D rt.exec("/bin/ls"); > int exitCode =3D p.waitFor(); > System.out.println("ExitCode: " + exitCode); > } > > } > I've got one me-too e-mail and just confirmed, this programm works = (exitCode =3D=3D 0) with the linux-jdk1.6.0 on freebsd. Should I file a PR? Ronald. -- = Ronald Klop Amsterdam, The Netherlands