Solve Linux terminal wget command download JDK problem, JDK configuration problem under Linux

Source: Internet
Author: User

Recently in the server with Linux, in the download of the JDK Oracle official website found, and then use wget + to download, 2 seconds later, the file downloaded, but the file size, only more than 800 K, obviously there are errors, and later found that the information is not available to obtain the URL. Finally figured out a way, no matter what to do, give it a try.

  1. Open the page for the JDK resource you want to download http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html

    650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/4A/wKiom1bk46LiMGLeAAB_6mTnfC4060.png "title=" QQ picture 20160313115002.png "alt=" Wkiom1bk46limgleaab_6mtnfc4060.png "/>2. Press F12 to open the browser debugging interface to view the network request that piece, this test is chrome, Other browsers should also be similar. 650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/4A/wKiom1bk5XDSkUFpAABdtzxTuTs063.png "title=" Liulanqi.png "alt=" Wkiom1bk5xdskufpaabdtzxtuts063.png "/>3. Click the address where you want to download the resource, and then go to the download, and note that:

    650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/4A/wKiom1bk5lWRh_3VAAC1RsgXryM388.png "title=" Cwz.png "alt=" Wkiom1bk5lwrh_3vaac1rsgxrym388.png "/> point to go to see the URL 650) this.width=650; src= HTTP://S2.51CTO.COM/WYFS02 /m02/7d/4a/wkiom1bk5ucbtgpiaadfi_eft9a121.png "title=" Wangzhi.png "alt=" Wkiom1bk5ucbtgpiaadfi_eft9a121.png "/> All right. Download 650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/4A/wKiom1bk5viyLTrOAABlk0Xffm4050.png "title=" Linux.png "alt=" Wkiom1bk5viyltroaablk0xffm4050.png "/>4. Change the downloaded file to jdk-7u79-linux-x64.tar.gz.

5. Run the installation file

Tar zxvf jdk-7u79-linux-x64.tar.gz

6. After the decompression is ready to configure the environment variables

Vim/etc/profile

At the end of the profile file, add: 
Export Java_home=/usr/share/jdk1.6.0_14
Export path= $JAVA _home/bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

7. After the change is saved, run the command:

Source/etc/profile

8. Run the java-version command, if Java version information appears, congratulations, complete the installation of the JDK.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/49/wKioL1bk_97SsbQsAAAtbPW0ofM611.png "title=" Ccc.png "alt=" Wkiol1bk_97ssbqsaaatbpw0ofm611.png "/>

This article is from the "flying ^ (oo) ^" blog, please be sure to keep this source http://kingstar.blog.51cto.com/8797655/1750513

Troubleshooting Linux terminal wget commands to download JDK, JDK configuration issues under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.