I had a problem trying to execute a .sh file with this content: java -Dlog4j.configuration = file: log4j.properties -jar -Dfile.encoding = ISO-8859-1 mainRPV.jar
the problem was that for some reason the file format was replaced with DOS instead of UNIX, probably because it was edited and saved in windows. this is due to the end of the line
try opening the file with vim and run this command: set ff = unix
Hello!
source share