Is it possible to Run Shell script in java program. I am using windows XP as my operating system.
Thanks in Advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general, it is not possible to run a shell script in Java. However, you can run the script from Java, provided that the shell is installed on your machine along with the commands mentioned in the shell script.
I take it that you want to run a UNIX shell script on your Windows XP machine. If that is the case, you need to install something like Cygwin.