Install JDK and environment settings under UNIX and Linux

xiaoxiao2021-03-06  46

I have successfully installed JDK (JDK-1_5_02-Linux-I586.rpm) on the UNIX system of Visualize C3600 in HP Workstation, and I have successfully installed JDK (JDK-1_5_0_02-Linux-i586.rpm), the process is simple: 1. First download JDK from the Internet (JDK-1_5_0_02- Linux-i586.rpm Enter the installation directory #CD / home # CP JDK-1_5_0_02-Linux-i586.rpm / usr / local # CD / USR / LOCAL adds executable permissions to all users #CHMOD X JDK-1_5_0_02-Linux-i586.rpm. BIN #. / JDK-1_5_0_02-Linux-i586.rpm.bin generates file JDK-1_5_0_02-Linux-i586.rpm, which gives all users to add executable permissions #CHMOD X JDK-1_5_0_02-Linux-i586 .rpm installer #RPM -IVH JDK-1_5_0_02-Linux-i586.rpm appears installation protocol, etc., press to accept. 2. Set the environment variable. #vi / etc / profile is added in the final surface #set java environmentJAVA_HOME = / usr / java / jdk-1_5_0_02CLASSPATH =:. $ JAVA_HOME / lib.tools.jarPATH = $ JAVA_HOME / bin: $ PATHexport JAVA_HOME CLASSPATH PATH save and exit. To make JDK in all users, you can do this: vi /etc/profile.d/java.sh Enter the following in new java.sh: #set java environmentjava_home = / usr / java / jdk-1_5_0_02classpath =. : $ Java_home / lib.tools.jarpath = $ java_home / bin: $ PATHEXPORT JAVA_HOME CLASSPATH PATH Save Exit, then assign permissions to java.sh: chmod 755 /etc/profile.d/java.sh3. Use the echo command in the terminal Environment variable settings. # Echo $ JAVA_HOME # echo $ ClassPath # echo $ path4. Check if the JDK is successfully installed. #java -version If you see the JVM version and related information, it is installed successfully!

I have successfully installed JDK (JDK-1_5_02-Linux-I586.rpm) on the UNIX system of Visualize C3600 in HP Workstation, and I have successfully installed JDK (JDK-1_5_0_02-Linux-i586.rpm), the process is simple: 1. First download JDK from the Internet (JDK-1_5_0_02- Linux-i586.rpm Enter the installation directory #CD / home # CP JDK-1_5_0_02-Linux-i586.rpm / usr / local # CD / USR / LOCAL adds executable permissions to all users #CHMOD X JDK-1_5_0_02-Linux-i586.rpm. BIN #. / JDK-1_5_0_02-Linux-i586.rpm.bin generates file JDK-1_5_0_02-Linux-i586.rpm, which gives all users to add executable permissions #CHMOD X JDK-1_5_0_02-Linux-i586 .rpm installer #RPM -IVH JDK-1_5_0_02-Linux-i586.rpm appears installation protocol, etc., press to accept. 2. Set the environment variable. #vi / etc / profile is added in the final surface #set java environmentJAVA_HOME = / usr / java / jdk-1_5_0_02CLASSPATH =:. $ JAVA_HOME / lib.tools.jarPATH = $ JAVA_HOME / bin: $ PATHexport JAVA_HOME CLASSPATH PATH save and exit. To make JDK in all users, you can do this: vi /etc/profile.d/java.sh Enter the following in new java.sh: #set java environmentjava_home = / usr / java / jdk-1_5_0_02classpath =. : $ Java_home / lib.tools.jarpath = $ java_home / bin: $ PATHEXPORT JAVA_HOME CLASSPATH PATH Save Exit, then assign permissions to java.sh: chmod 755 /etc/profile.d/java.sh3. Use the echo command in the terminal Environment variable settings. # Echo $ JAVA_HOME # echo $ ClassPath # echo $ path4. Check if the JDK is successfully installed. #java -version If you see the JVM version and related information, it is installed successfully!

I have successfully installed JDK (JDK-1_5_02-Linux-I586.rpm) on the UNIX system of Visualize C3600 in HP Workstation, and I have successfully installed JDK (JDK-1_5_0_02-Linux-i586.rpm), the process is simple: 1. First download JDK from the Internet (JDK-1_5_0_02- Linux-i586.rpm Enter the installation directory #CD / home # CP JDK-1_5_0_02-Linux-i586.rpm / usr / local # CD / USR / LOCAL adds executable permissions to all users #CHMOD X JDK-1_5_0_02-Linux-i586.rpm. BIN #. / JDK-1_5_0_02-Linux-i586.rpm.bin generates file JDK-1_5_0_02-Linux-i586.rpm, which gives all users to add executable permissions #CHMOD X JDK-1_5_0_02-Linux-i586 .rpm installer #RPM -IVH JDK-1_5_0_02-Linux-i586.rpm appears installation protocol, etc., press to accept. 2. Set the environment variable. #vi / etc / profile is added in the final surface #set java environmentJAVA_HOME = / usr / java / jdk-1_5_0_02CLASSPATH =:. $ JAVA_HOME / lib.tools.jarPATH = $ JAVA_HOME / bin: $ PATHexport JAVA_HOME CLASSPATH PATH save and exit. To make JDK in all users, you can do this: vi /etc/profile.d/java.sh Enter the following in new java.sh: #set java environmentjava_home = / usr / java / jdk-1_5_0_02classpath =. : $ Java_home / lib.tools.jarpath = $ java_home / bin: $ PATHEXPORT JAVA_HOME CLASSPATH PATH Save Exit, then assign permissions to java.sh: chmod 755 /etc/profile.d/java.sh3. Use the echo command in the terminal Environment variable settings. # Echo $ JAVA_HOME # echo $ ClassPath # echo $ path4. Check if the JDK is successfully installed. #java -version If you see the JVM version and related information, it is installed successfully!

I have successfully installed JDK (JDK-1_5_02-Linux-I586.rpm) on the UNIX system of Visualize C3600 in HP Workstation, and I have successfully installed JDK (JDK-1_5_0_02-Linux-i586.rpm), the process is simple: 1. First download JDK from the Internet (JDK-1_5_0_02- Linux-i586.rpm Enter the installation directory #CD / home # CP JDK-1_5_0_02-Linux-i586.rpm / usr / local # CD / USR / LOCAL adds executable permissions to all users #CHMOD X JDK-1_5_0_02-Linux-i586.rpm. BIN #. / JDK-1_5_0_02-Linux-i586.rpm.bin generates file JDK-1_5_0_02-Linux-i586.rpm, which gives all users to add executable permissions #CHMOD X JDK-1_5_0_02-Linux-i586 .rpm installer #RPM -IVH JDK-1_5_0_02-Linux-i586.rpm appears installation protocol, etc., press to accept. 2. Set the environment variable. #vi / etc / profile is added in the final surface #set java environmentJAVA_HOME = / usr / java / jdk-1_5_0_02CLASSPATH =:. $ JAVA_HOME / lib.tools.jarPATH = $ JAVA_HOME / bin: $ PATHexport JAVA_HOME CLASSPATH PATH save and exit. To make JDK in all users, you can do this: vi /etc/profile.d/java.sh Enter the following in new java.sh: #set java environmentjava_home = / usr / java / jdk-1_5_0_02classpath =. : $ Java_home / lib.tools.jarpath = $ java_home / bin: $ PATHEXPORT JAVA_HOME CLASSPATH PATH Save Exit, then assign permissions to java.sh: chmod 755 /etc/profile.d/java.sh3. Use the echo command in the terminal Environment variable settings. # Echo $ JAVA_HOME # echo $ ClassPath # echo $ path4. Check if the JDK is successfully installed. #java -version If you see the JVM version and related information, it is installed successfully!

转载请注明原文地址:https://www.9cbs.com/read-40722.html

New Post(0)