Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 23:19:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 191403] java/openjdk8-8.5.13_7 java.lang.ProcessBuilder.start throwing IOException: no such file or directory
Message-ID:  <bug-191403-8522-QCRm8R3jXt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191403-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-191403-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191403

Jung-uk Kim <jkim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jkim@FreeBSD.org

--- Comment #1 from Jung-uk Kim <jkim@FreeBSD.org> ---
Sorry but I can't reproduce the problem.

% uname -pr
11.0-CURRENT amd64
% cat PBuilder.java
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class PBuilder {
  public static void main(String args[]) {
    try {
      Process p = new ProcessBuilder("/bin/date").start();

      //Read out dir output
      InputStream is = p.getInputStream();
      InputStreamReader isr = new InputStreamReader(is);
      BufferedReader br = new BufferedReader(isr);
      String line;
      System.out.printf("Output of running is:\n");
      while ((line = br.readLine()) != null) {
        System.out.println(line);
      }

      //Wait to get exit value
      try {
        int exitValue = p.waitFor();
        System.out.println("\n\nExit Value is " + exitValue);
      } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
      }
    }
    catch(java.io.IOException e) {
      e.printStackTrace();
    }
  }
}
% /usr/local/openjdk8/bin/java PBuilder
Output of running is:
Fri Jun 27 19:15:44 EDT 2014


Exit Value is 0
% /usr/local/openjdk8/bin/java -version
openjdk version "1.8.0_05"
OpenJDK Runtime Environment (build 1.8.0_05-b13)
OpenJDK 64-Bit Server VM (build 25.5-b02, mixed mode)
% pkg query %n-%v java/openjdk8
openjdk8-8.5.13_8

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191403-8522-QCRm8R3jXt>