1, login sun.com download the latest JDK, I am under jdk-6u5-linux-i586-rpm.bin that is saved in the directory "~/" under.
2. Since the bin file does not have executable permissions, execute the command at the terminal: chmod 777 ~/jdk-6u5-linux-i586-rpm.bin.
3. Log in to the root user and execute the bin file, for example: ~/jdk-6u5-linux-i586-rpm.bin.
4, next configure the environment variables. Execute under root privileges: vi /etc/profile, add the following lines to the end of the file:
export JAVA_HOME=/usr/java/jdk1.6.0_05
export PATH= $JAVA_HOME: $PATH
export CLASSPATH=$JAVA_HOME/lib
and save.
5, log out and complete. At this point, execute: java -version in the terminal to see if it is java version "1.6.0_05". If yes, it means success. If it is not successful, change the above several exports to:
export JAVA_HOME=/usr/java/jdk1.6.0_05
export PATH=/usr/java/jdk1. 6.0_05: $PATH
export CLASSPATH=/usr/java/jdk1.6.0_05/lib
As for why this is changed, it is because of "PATH=$JAVA_HOME:$PATH" $JAVA_HOME" is not parsed by the system. Then why didn't it be solved by the system, I don't know, maybe it's okay to restart it.
Finally, the point to note during the configuration process is: export PATH=$JAVA_HOME:$PATH, but not export PATH=$PATH:$JAVA_HOME. That is to say, we must pay attention to the order of order, because the original $PATH has "/usr/bin", and there is also a java command in "/usr/bin". This java is JDK in /usr/share< Br>
When compiling the program today, the error: storage class specified for parameter is not found in
Bill · Gates attitude towards software is: If you want good software, you have to pay for it.
In todays increasingly prominent network security issues, how to ensure the security of Ubuntu syste
Although Linux systems are more secure than Windows, some simple security configurations are necess
Conflicts in Linux and their coping strategies
Linux will unify the rivers and lakes
Basic configuration after Centos installation
The difference between chown and chmod
Snmp call script and independent log configuration
NVIDIA graphics card to solve Ubuntu Linux resolution problem
Analyze the Linux firewall framework from five aspects
Solve the system problem accurately Linux log management
Configuring Linux operating system environment variables
Win8 automatic network disconnection solution
Introduction to APMD parameters and usage in Linux
Win7 system right-click computer can not open the solution for management options
When will Windows10 be officially released? Win10 release date/sale price debut in
Win10 Xiaona 13-year-old children can't play, what should I do?
How does Win7 system improve Thunder download speed?
Windows 8 how to get the highest administrator privileges with one click
Quickly compress large volume PDF files
How to use Linux to clear Bash environment variables with commands
Win10QQ can not log in "can not access personal files how to do"