private void runBuilder2(){
System.out.println("builder2 trying ---->");
try {
ProcessBuilder builder = new ProcessBuilder( getApplicationInfo().nativeLibraryDir+"/node", "-h");
Process process = builder.start();
// print its log
// Capture the process output (stdout)
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
// Read and print the output line by line
String line;
while ((line = reader.readLine()) != null) {
System.out.println(line);
}
// Wait for the process to finish
int exitCode = process.waitFor();
System.out.println("\nExited with code: " + exitCode);
}
catch (Exception e) {
System.out.println("Run : IOException error:"+e);
}
}
Вывод функции выше
Выполнить: ошибка IOException: java.io.IOException: невозможно запустить программу "/data/app/~~Wonxuy8etqj7fN6HSwqrSA== /com.code.nativetester-6QtPkpExKhbZOsI163eTpA==/lib/arm64/node": error=2, такого файла или каталога нет
Мне нужно объяснение моей проблемы и проверенное решение
Спасибо
ProcessBuilder builder = new ProcessBuilder( getApplicationInfo().nativeLibraryDir+"/node", "-h"); Process process = builder.start(); // print its log // Capture the process output (stdout) BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
// Read and print the output line by line String line; while ((line = reader.readLine()) != null) { System.out.println(line); }
// Wait for the process to finish int exitCode = process.waitFor(); System.out.println("\nExited with code: " + exitCode);
} [/code] [b]Вывод функции выше[/b] Выполнить: ошибка IOException: java.io.IOException: невозможно запустить программу "/data/app/~~Wonxuy8etqj7fN6HSwqrSA== /com.code.nativetester-6QtPkpExKhbZOsI163eTpA==/lib/arm64/node": error=2, такого файла или каталога нет Мне нужно объяснение моей проблемы и проверенное решение Спасибо