Under Linux system, install jdk and configure environment variables
Others
2022-04-23 06:23:59
views: 0
1. First enter the usr folder
2. Go to local again, you can see the previously downloaded package jdk -7....rpm , /usr/local
3. First check whether jdk is installed, and then use RPM to decompress
4. Check the installation path after jdk is decompressed: /usr/java/jdk/1.7.0.80 (the java folder is automatically created by decompression)
5. After the jdk is installed, check it out:
6. Configure JDK environment variables: enter the configuration file /etc/profile and modify it
7. After entering /etc/profile, add the following:
8. After the environment variables are configured, we need to verify the success: java -version /javac -version
Origin http://43.154.161.224:23101/article/api/json?id=325505756&siteId=291194637