Next thing...

RUN_CMD="\"$JAVA\" \"-Djava.security.policy=$MERLIN_HOME/bin/security.policy\" 
\"-Djava.ext.dirs=$MERLIN_HOME/ext\" -jar 
\"$MERLIN_HOME/bin/lib/merlin-cli-3.2.jar\" \"[EMAIL PROTECTED]""
echo "RUN CMD IS: $RUN_CMD"
exec $RUN_CMD


does not work on my system.

[EMAIL PROTECTED] merlin-home]$ sh ./merlin/bin/merlin.sh 
tutorial/hello/target/hello-1.1.jar
RUN CMD IS: "/java/jdk/bin/java" 
"-Djava.security.policy=/home/niclas/dev/merlin-home/merlin/bin/security.policy" 
"-Djava.ext.dirs=/home/niclas/dev/merlin-home/merlin/ext" -jar 
"/home/niclas/dev/merlin-home/merlin/bin/lib/merlin-cli-3.2.jar" 
"tutorial/hello/target/hello-1.1.jar"
./merlin/bin/merlin.sh: line 47: 
/home/niclas/dev/merlin-home/"/java/jdk/bin/java": No such file or directory
./merlin/bin/merlin.sh: line 47: exec: 
/home/niclas/dev/merlin-home/"/java/jdk/bin/java": cannot execute: No such 
file or directory

The "stuff"added in front of "/java/jdk/bin/java", is because the \" is 
interpreted to be part of the filename, hence a relative name...

Without the \" it works more like expected.

Now I assume that was probably added to support CygWin or perhaps Solaris...
Maybe there is an issue with spaces in the directory names, which I know is 
hard to get to terms with in shell scripts.

but it is broken on my RedHat 9.0 system.


Niclas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to