I am running a jar file using a very basic shell script (I literally just need this to run on startup of a NAS). However, I am getting some rather unexpected behavior:
Script looks like this:
java -jar myJar.war --inputParam=10101
myJar starts up - then throws a
NumberFormatException saying that
"10101 is not a valid number format. The question is: where is that
" coming from? Anything I can try to avoid this behavior?
The exact same command works if I run it manually without a script since there's no
Thank you kindly!
EDIT: hexdump of the original file:
0000000 / u s r / l o c a l / j r e / b 0000010 i n / j a v a - j a r / s h 0000020 a r e / m a t h u - g o / j e n 0000030 k i n s . w a r - - h t t p P 0000040 o r t = 1 0 1 0 1 \r \n
Thanks for all the suggestions.