First we need a client to link Linux system, secure CRT command mode; secure FX view mode;
First, go to Oracle's website to download a 1.7JDK decompression package: jdk-7u80-linux-x64.tar.gz
- Log in, and then select Download
- Pull the page to the bottom and select Java Archive
- Select Version 7
- Agree to the agreement, select the desired version
- Log in to secure FX and upload the JDK package to Linux
- Then log in to the secure CRT and go to the directory where you unzipped the package and unzip it.
TAR-XZVF jdk-7u80-linux-x64.tar.gz
I stepped on a hole here, I use the account does not have the ability to unpack the operation of the package, so has been decompression failed, Qaq. After the root account for the decompression! This pit is worth the value, the harvest is full! ヾ (? °?°?)?? Come on!
1, *.tar with TAR–XVF decompression
2, *.gz with gzip-d or gunzip decompression
3, *.tar.gz and *.tgz with TAR–XZF decompression
4, *.bz2 with bzip2-d or with BUNZIP2 decompression
5, *.tar.bz2 with TAR–XJF decompression
6, *. Z Extract with Uncompress
7, *.tar. Z Extract with Tar–xzf
8, *.rar with Unrar e decompression
9, *.zip with unzip decompression
- Start configuring environment variables after successful pressurization! Linux and windows are a bit different and don't need to be installed!
vi /etc/profileEnter the system variable configuration file, directly on the keyboard to hit a capital "G", enter, navigate to the last line
Then: hit a lowercase i , enter, insert a new line, appear---insert----words! You can copy and paste it.
export JAVA_HOME=/usr/local/jdk1.7.0_71
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
Then we save and exit:
① Press ESC, now----INSERT---word disappears,
② input :x Note is colon and lowercase x, with colon
- Check that the configuration is correct, enter:
Summarize:
- Pit 1. Download to find the unpacking package a lot of no use, scrambling to find, finally or Oracle official website download, oneself to make a job
- Pit 2. After uploading, no decompression execution permission, has been trying to understand why the decompression failed to
ls -l see a bit, mom eggs, the original is I do not have permission to change the root account decompression
- Pit 3. Into the system file, because there is no attention to the cursor and the following----insert---words, do not know what the mode, how the input is not used, I do not dare to move, but also
:q! quit the file, afraid of their own disorderly operation of what
Just configured a small Linux environment variable, the middle also stepped on n pits, or a bit of harvest! ヾ (? °?°?)??
Linux System Build JDK