Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
3

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.


[#25474] Wednesday, March 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cocal

Total Points: 236
Total Questions: 111
Total Answers: 123

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
;