I have a shell script a.sh
file with this command and I want to run it from my Java program but can't figure it how.
I usually run it as either ./a.sh
or by typing the command in the terminal
yarn jar target/ww-SNAPSHOT.jar path/to/file.properties
How will i be able to run it from Java along with being able to change .properties file location?
** EDIT**
I can actually simply set the .properties file location but still can't seem to run the command if it is not in .sh script?