How do I change Java version in Linux?

Ngân Lam

New member
How do I change Java version in Linux?
Answer
Procedure
  1. Download or save the appropriate JDK version for Linux. …
  2. Extract the compressed file to the required location.
  3. Set JAVA_HOME using the syntax export JAVA_HOME= path to JDK . …
  4. Set PATH using the syntax export PATH=${PATH}: path to the JDK bin . …
  5. Verify the settings using the following commands:
 

Tìm kiếm

Back
Top