Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you. Commented Feb 6, 2017 at 13:40
  • @hannah-s check the mailbox of the user that owns the crontab for error log emails, Commented Feb 6, 2017 at 13:43
  • Do you think you have to define JAVA_HOME each time you run a java app? You don't have to. Just use the absolute path to java: /usr/share/doc/openjdk-6-jre-headless/java -jar ... Commented Feb 6, 2017 at 16:06
  • Ahhh i didn't know - it still isn't working I'm afraid unless i still have a typo, iv changed the script file to: #!/bin/bash export PATH=/usr/share/doc/openjdk-6-jre-headless:$PATH java -jar /usr/local/bin/javatest.jar but it isn't running :( Commented Feb 6, 2017 at 16:25