I want to execute a script file from Java , so i have used the following lines of code to execute the script file.
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("/home/akshay/NetBeansProjects/testapplication/src/test_script");
But runtime.execute("path/to/file/") requires String as parameters which is path to the file , but i need to include the script file in the Jar.
So please help to how to include a script file inside the jar and also what parameters should i provide in the runtime.execute("please specify what parameters should i supply when i copy and paste the script files in the current pacakge")