How to install the jdk you want under Linux? Last time we talked about how to uninstall the jdk that comes with it on Linux. If you uninstall it, we want to install the jdk that we want. then what should we do? Xiaobian this episode will tell you how to install the desired jdk under Linux.
Install the jdk you want under Linux:
Tools:
CentOs6.x this version of linux system
jdk, download URL: http: //www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html, select the version you need to download
The following installation is demonstrated with the rpm package, so please download Rpm package file.
Steps:
1: Drag the download rpm package into the linux system and enter the corresponding directory to execute: rpm -ivh jdk-7u51-linux-x64.rpm:
2: After installation, configure environment variables: execute the vi /etc/profile command and add the configuration information as shown below. Note: The directory should be written in your own installation directory, generally installed by default under /usr/java.
3: If you don't want to re-system, you can use the command source /etc/profile to make the configuration file take effect immediately. Otherwise, you can only restart the system for the configuration parameters to take effect. Then we can view the configuration information by echo $JAVA_HOME ;echo $PATH;echo $CLASSPATH .
4: Finally, we pass again: java -version to see if we have successfully installed jdk.
Remember to operate under the user with root privileges. Commonly we execute the :su - root command, and then enter the password of the root user to get root privileges. This is how to install the jdk tutorial
you want under Linux.
For ease of use, we will save the Xshell session. How to transfer the session information saved on
How to effectively perform Linux patch management Red Hat LinuxOSRHEL patch can be installed throug
Add ftp user in linux, and set the corresponding permissions, the operation steps are as follows: 5
When reading apue, the shared storage area is not used for instance. For this reason, I wrote a smal
The meaning and difference between Linux chmod 755 and chmod 777
Linux kernel interrupt mechanism analysis
Linux dual network card dual gateway settings for different IP segments
The biggest difference between Linux and Windows operating system upgrades
Linux kernel source code structure overview
Explain the various problems that occur when Fedora 9 is installed.
Mysql installation considerations, five reasons for installation failure
VIM block indentation and replacement
How to remove the old kernel of Ubuntu Linux operating system
The computer value of this configuration 3900 is not worth it. Can you play LOL Watch Pioneer?
Explore the mystery of the win2003web interface
Linux command line learning - dig (DNS querier)
Solving Win7/Win8 can't open hibernation problem
Win10 9926 new features detailed
The reason for the automatic restart after the computer is turned off and the solution to the
How Linux expands the number of file openers
Windows7 features and components
Use the registry to recover accidentally deleted Windows 7 notes prompt