java: not found during Stash startup
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
Stash fails to start and the following appears in the
./catalina.sh: 1: eval: /usr/lib/jvm/java-8-oracle/jre/bin/java/bin/java: not found
JAVA_HOME environment variable isn't problem set, so Stash is looking for
bin/java in the wrong place.
- Adjust JAVA_HOME for the user running Stash. In the example above it should be
- If the path shown in the error persists, confirm JAVA_HOME was adjusted for the correct user.
- If JRE_HOME is also shown as the wrong path, confirms if there's a JRE_HOME variable set, adjusting it as well. If this isn't set, it's just going to take the value from JAVA_HOME.