[Bug 191403] java/openjdk8-8.5.13_7 java.lang.ProcessBuilder.start throwing IOException: no such file or directory
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jun 27 23:19:34 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191403
Jung-uk Kim <jkim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jkim at FreeBSD.org
--- Comment #1 from Jung-uk Kim <jkim at 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.
More information about the freebsd-java
mailing list