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?
feedback
|
|
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. | |||
feedback
|
|
Using Oracle JDK, here is how I set mine. Don't forget the "-p" in your export command.
| |||
|
feedback
|