1, download jdk1.7 or use wget command to download directly
2, extract jdk
tar-axvf jdk-7u51-linux- X64.tar.gz
3. Configure environment variables
(1)Ordinary users
vim /home/user/.bash_profile
Add the following content :
export JAVA_HOME=/home/user/workspace/jdk/jdk1.7.0_51export PATH=$JAVA_HOME/bin:$PATH
(2)root user, configure global variables
vim /etc/profile
The added content is the same as above
4, making the configuration effective
source home/user/.bash_profile
5, view the java version
java -version
Note:
#Because sometimes the system default JDK is OpenJDK, so we need to modify, so that the system default JDK is Sun JDK
#Set java#sudo alternatives –install /usr/bin/java java /home/user/workspace/jdk/jdk1.7.0_51/jre/bin/java 20000
#设置javaws#sudo alternatives –install /usr/bin/javaws javaws /home/user/workspace/jdk/jdk1.7.0_51/jre/bin/javaws 20000
#Set javac#sudo alternatives & Ndash;install /usr/bin/javac javac /home/user/workspace/jdk/jdk1.7.0_51/bin/javac 20000
#Switch default JAVA#sudo alternatives –config java
I am a Linux rookie like many people, but it is very interested in this, not toss is not good; I dow
1. Lock the redundant self-built account in the systemCheck method:Execute the command#cat /etc/pas
When doing the experiment, we burned the bin file into the SD card, such as the previous assembly fl
KVM: Kernel-based Virtual Machine is an open source virtualization solution based on the Linux kerne
Linux common compression decompression command set
Arm linux boot process into the kernel
Linux kernel wait queue mechanism principle analysis
Modify Linux MAC address in VMware virtual machine
Linux remote graphical common error handling
CenterOS 64-bit mysql5.5.25 to open remote access function
Linux sector by sector read and write block device
Free to use Windows documentation on the Linux desktop
Example of initialization file for rom under ISE
VMware View4.5 Virtual Desktop Solution FAQ
Windows 7/8.1 upgrade Windows 10 Build 9926 tutorial
WinRAR "blame" allows you to compress as you like
Windows 10 "Recommended Update" has not received too much adoption rate
How to create a new dial-up network win10? Win10 set up the detailed process of dial-up Internet
How to set the notification after lock screen under Windows 8?
How to maximize Windows 7 backup disk space
Win7 system manually clears the DNS cache to solve website anomalies
How to set the WiFi Chinese name of the wireless router in Win7 system?