List Info

Thread: jdk1.6: Runtime.exec fails always




jdk1.6: Runtime.exec fails always
user name
2007-08-13 17:41:54
When I run this programm, I always get exitCode == 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 Jul  
14 13:11:40 CEST 2007      
rootronald.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 = Runtime.getRuntime();
         Process p = rt.exec("/bin/ls");
         int exitCode = p.waitFor();
         System.out.println("ExitCode: " +
exitCode);
     }

}

-- 
  Ronald Klop
  Amsterdam, The Netherlands
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: jdk1.6: Runtime.exec fails always
user name
2007-08-14 05:04:51
On Tue, 14 Aug 2007 00:41:54 +0200, Ronald Klop  
<ronald-freebsd8klop.yi.org> wrote:

> When I run this programm, I always get exitCode ==
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 Jul  
> 14 13:11:40 CEST 2007      
> rootronald.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 = Runtime.getRuntime();
>          Process p = rt.exec("/bin/ls");
>          int exitCode = p.waitFor();
>          System.out.println("ExitCode: " +
exitCode);
>      }
>
> }
>

I've got one me-too e-mail and just confirmed, this programm
works  
(exitCode == 0) with the linux-jdk1.6.0 on freebsd.

Should I file a PR?

Ronald.

-- 
  Ronald Klop
  Amsterdam, The Netherlands
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: jdk1.6: Runtime.exec fails always
country flaguser name
China
2007-08-13 19:47:10
Ronald Klop wrote:
> When I run this programm, I always get exitCode ==
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 
> Jul 14 13:11:40 CEST 2007     
> rootronald.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 = Runtime.getRuntime();
>         Process p = rt.exec("/bin/ls");
>         int exitCode = p.waitFor();
>         System.out.println("ExitCode: " +
exitCode);
>     }
>
> }
>
me too,

%/usr/local/jdk1.6.0/bin/java -version
java version "1.6.0_01-p1"
Java(TM) SE Runtime Environment (build 
1.6.0_01-p1-hwh_11_aug_2007_08_30-b00)
Java HotSpot(TM) 64-Bit Server VM (build 
1.6.0_01-p1-hwh_11_aug_2007_08_30-b00, mixed mode)

%uname -a
FreeBSD hwh.gddsn.org.cn 7.0-CURRENT FreeBSD 7.0-CURRENT
#33: Wed Aug  8 
07:31:15 CST 2007     hwhhwh.gddsn.org.cn:/usr/obj/usr/src/sys/IBM01  amd64


_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: jdk1.6: Runtime.exec fails always
country flaguser name
Australia
2007-08-15 09:44:26
On Tue, Aug 14, 2007 at 12:04:51PM +0200, Ronald Klop
wrote:
> On Tue, 14 Aug 2007 00:41:54 +0200, Ronald Klop  
> <ronald-freebsd8klop.yi.org> wrote:
> 
> >When I run this programm, I always get exitCode ==
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 Jul  
> >14 13:11:40 CEST 2007      
> >rootronald.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 = Runtime.getRuntime();
> >         Process p = rt.exec("/bin/ls");
> >         int exitCode = p.waitFor();
> >         System.out.println("ExitCode: "
+ exitCode);
> >     }
> >
> >}
> >
> 
> I've got one me-too e-mail and just confirmed, this
programm works  
> (exitCode == 0) with the linux-jdk1.6.0 on freebsd.
> 
> Should I file a PR?

Yes, please!  That will make it easier to track.

-- 
Greg Lewis                          Email   : glewiseyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewisFreeBSD.org
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )