File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes batch file to shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "batch file to shell script" Watch "batch file to shell script" New topic

batch file to shell script

harshada patil
Ranch Hand

Joined: Mar 12, 2011
Posts: 96
I have one batch file to execute my java application, in which i am setting some system propperties as given below:
set ABCD_USERNAME=-Dabcduser="harsha_p"
set ABCD_PASSWORD=-Dabcdpwd="UJclDzbjshjkjmlkPNnsaalq"

and then

and then
java %JAVA_OPTS% -classpath %CLASSPATH% main

How to change this batch file to shell script ?
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

Moving to Linux/Unix. In the future, please CarefullyChooseOneForum.(⇐click)
Anand Hariharan

Joined: Aug 22, 2006
Posts: 272

Instead of --

  • set, say export.
  • %foo%, say $foo

  • "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
    I agree. Here's the link:
    subject: batch file to shell script
    jQuery in Action, 3rd edition