To install JDK in Linux, perform the following steps: 1. download the JDK Linux installation version from the sun website: http: wwworacl
To install JDK in Linux, perform the following steps:
1. download JDK Linux installation version from sun website: http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. upload the file to Linux through ftp
First, confirm that the Vsftpd server has been installed on Linux and started.
Upload jdk to Linxux under dos
Use the putty client to connect to remote Linux. check the/var/ftp directory and find that the file has been uploaded. VcD4KPHA + ICAgICAgICA8aW1nIHNyYz0 = "http://www.2cto.com/uploadfile/Collfiles/20140228/201402280906042.jpg" alt = "\">
3. modify the running permission of the file
The modified jdk file turns green.
4. query the type of the installation file. if it is a. bin file, it is a file that can be run directly. if it is an rpm file, it indicates the file that needs to be installed through rpm. Installing through the. bin file is very simple. you can simply enter./jdk.
Press enter to install it. because I have installed it on Linux, I will not install it again.
5. after the installation is complete, check java-version to check the current jdk version. if you find that the version is not just installed, set the corresponding path,
Because there may be corresponding jdk in the original machine, it will not find the newly installed jdk by default, you must manually set the corresponding environment variables, you can set the/etc/profile file, note that the profile takes effect only after the user logs in again.
After the modification, log out of the user and log on again. enter java-vsersion again to check whether the version we just installed is correct. If yes, the environment variable has been configured.