Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2007 12:04:51 +0200
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-java@freebsd.org
Subject:   Re: jdk1.6: Runtime.exec fails always
Message-ID:  <op.tw1nmdhd8527sy@guido.klop.ws>
In-Reply-To: <op.tw0rz4gq8527sy@guido.klop.ws>
References:  <op.tw0rz4gq8527sy@guido.klop.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Aug 2007 00:41:54 +0200, Ronald Klop  =

<ronald-freebsd8@klop.yi.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.tw1nmdhd8527sy>