I am trying to run my java program through bash in a linux system where the command is:
java -Dresources=path1 -Dinstance=instance1 -cp ./lib/jar1.jar;./lib/folder1/*;./lib/common/*; lib/folder2/* com.test.host
In the host class I am reading some XML files, which has spring beans and I am loading them. This command works perfectly fine in windows. However, when I run this in Bash shell. I get the following exception:
syntax error near unexpected token newline 'xml version= 1.0 encoding= utf-8'
I tried removing unnecessary spaces in the XML and tried but to no avail.