I am trying to configure Tomcat to know where JAVA_HOME is. I am used to Windows :) ...which file should I edit to add the Java info, and where is it located?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
For development work: If your shell is bash (echo $SHELL -> /bin/bash) you may want to add a JAVA_HOME entry in /home/<user>/.bashrc. However, note that if you only work with one Java version, you should install the package and no explicit JAVA_HOME setting should be necessary for most scenarios. Also, it is sometimes convenient to do something like this:
Which means to set JAVA_HOME for this command only. |
|||
|
|
Using Oracle JDK, here is how I set mine. Don't forget the "-p" in your export command.
|
|||
|
|