This article describes how to set the Java environment variables under Linux.
Tools/Materials
- Linux
- Java Environment variables
Method/Step
- 1
To view the installation path for Java
View Java Execution path
Configuring Java Environment variables
Installation path and execution path for Java
Note that the java_home in the back must take the bin path, the path setup must be done with
Export output, pay attention to the export word do not write wrong
V-parameter Test with Java after setting environment variable, or failed because the source command was not executed
The environment variable is modified to execute the source command, making the configuration effective
After running source, using the Java version parameter, you can see the Java release Note that the Java environment variable is configured successfully
This is the core content of the profile configuration Java variables
Java environment Variable configuration instructions
View Java Environment variables
END
Precautions
- To operate with the root account when configuring
How to set the Java environment variables in Linux