How are you running the script? In particular, is there an active X-server running on the machine?
What happens if you just run google-chrome for example as your command in the Java program above? Does it launch Chrome correctly on the machine when the program runs?
It does not show any error message. Just an empty field is shown
No there is no active x server running on the machine.
I don't have google chrome in linux installed. I only have firefox browser. firefox didn't start when I ran it from java program.
Note: I resolved this issue using processbuilder object in java.
Anyway, thanks for your reply.
This bash script does not run as it should.