I am trying to use Runtime.exec to run a class file from my java code but not able to launch the new process on Linux,The same is working on the windows..
I want or launch the process from GUI (which I am running from a jar file named Launch.jar) on a button click.
So I used the following code.
String curpath=System.getProperty("user.dir");
Runtime.getRuntime().exec(new String[] { "/bin/bash", "-c", "java -classpath"+curpath+File.separator+" Launch.jar LaunchNewProcess" });