The following method has not been tried yet. I hope it can be used. I have not tried it yet. JDK is not ready yet ......
========================================================== ====================
Statement: Linux is fedora8. Assume that the current user is Abin.
1. Download The jdk-6u4-linux-i586.bin to sun.com, assuming the download to the current user directory;
2. Create the Software Directory under/home/Abin and copy the jdk-6u4-linux-i586.bin to the Software Directory;
3. Find the terminal, go to/home/Abin/software, and execute the command Sh.
Jdk-6u4-linux-i586.bin, the screen will show some protocol files, one way press enter, To the end will recognize you confirm the installation, enter Yes, press enter, wait a moment ......, Will
Create a jdk1.6.0 _ 04 folder under/home/Abin/software. This is the JDK installation directory.
Okay. Set the JDK environment variable as follows:
4. If it is only for the current user, go to the current user directory (/home/ABIN), edit the. bashrc file, and add the environment variable at the end, as shown below:
Java_home =/home/Abin/software/jdk1.6.0 _ 04 Classpath =.: $ java_home/lib/tools. jar: $ java_home/lib/dt. Jar Path = $ java_home/bin: $ pathExport java_home classpath path |
5. to be used by all users, log on as the root user, enter the/etc directory, and add the above environment variables at the end of the profile file.
Note: When setting environment variables, pay attention to the following points:
A) The first is the format of environment variables. previously set in Windows to separate the paths with semicolons, and use colons in Linux;
B) Second, check whether there are any variables to be set in the system. If yes, add ": $ variable name" to the variable with the same name. For example, if the PATH variable exists in the system, you must write Path = $ java_home/bin: $ path when setting the PATH variable. Otherwise, the last set content will overwrite the previous content.
To check whether a variable with the same name exists in the system, run the echo command in the following format: Echo $ path
6. After the configuration is complete, enter Java-version on the terminal to display the JDK version information, indicating that the installation is successful. Congratulations!
========================================================== ========================================================== ================================
After the test, the system runs slowly. I don't know why.