126
rated 0 times
[
126]
[
0]
/ answers: 1 / hits: 448118
/ 2 Years ago, tue, march 1, 2022, 12:20:04
How to find my current JAVA_HOME in ubuntu? I have to set java_home path when installing maven.
More From » java
How to find my current JAVA_HOME in ubuntu? I have to set java_home path when installing maven.
To display JAVA_HOME
variable path, type in terminal:
echo $JAVA_HOME
If nothing appears then set it with this:
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
This will differ according to your JDK type and version.
For displaying it again, follow the first command.
Follow JREs from different vendors on the same system, for using different JDK's or switch between JDK's.