Post #4 is correct. The line below is your problem:
When you run it at the terminal; I assume you cd into the directory where test10.properties
is located? Then when you execute the application should find the properties file?
When run from the root crontab; the application will look for /root/test10.properties
- rather explicitly specify the location in your code. Alternately there are build tools out there that will build your properties file into your JAR.