So I know that this sounds strange but I don't know why.
I have a shell script which opens a GUI. When i rightclick on the file and click "run in console" this is what I get:
Somehow the script just does not keep to continue.
BUT when I try double click on the shell script or running it via console (./vtdStart.sh):
it works normally.
What can the problem be?
I need to run the script via JAVA:
public static void main(String[] args) {
ProcessBuilder pb = new ProcessBuilder("//home/bfft/VTD/VTD.2.1/bin/vtdStart.sh");
Thread thread = new Thread(() -> {
try {
Process p = pb.start();
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while ((line = br.readLine()) != null) {
System.out.println(""+line);
}
} catch (IOException ex) {
Logger.getLogger(JavaApplication2.class.getName()).log(Level.SEVERE, null, ex);
}
});
thread.start();
}
But as you have already guessed, the programm won't be executed. It is the same "error" as when i try it with "run in console".