Java environment configuration under Ubuntu12.04

Source: Internet
Author: User
In the past two days, java environment configuration has been completed in Ubuntu. I have configured it before and think it is very simple. It should not be difficult for a half-Senior Programmer, but I am not familiar with linux, so the configuration process is inevitable after several twists and turns. This article serves as a note. One of the twists and turns-download: the download speed is so slow that I failed to download it in Ubuntu and downloaded it many times in Windows. I have to say that, sogou's campus acceleration indeed makes download faster than chrome. But the download fails.

In the past two days, java environment configuration has been completed in Ubuntu. I have configured it before and think it is very simple. It should not be difficult for a half-Senior Programmer, but I am not familiar with linux, so the configuration process is inevitable after several twists and turns. This article serves as a note.

One of the twists and turns-download: the download speed is so slow that I failed to download it in Ubuntu and downloaded it many times in Windows. I have to say that, sogou's campus acceleration indeed makes download faster than chrome. But it still cannot be downloaded. At last, we had to install thunder download (the reason for not installing it is that the download provided by the browser is really good, and it has become a problem recently ). It may be because of the slow speed in the past few days. Latest java: http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html

Twists and turns two -- installation: Originally in accordance with the http://www.linuxidc.com/Linux/2012-06/62239.htm for good. However, at the last step, I could not enter the password, T_T. It was a big bang for people just getting started with Ubuntu! After searching online for a long time, I found a solution.

Solution: On the logon page, enter the shortcut key ctrl + alt + F1 to log on to the text mode. Then, delete the development. sh in the Link step 2, and then click OK. In fact, the development. sh solution is under the profile. d directory. I think it is excellent. Now, I think it may be because I have added spaces on both sides of the number, but I didn't use this solution later, so I'm not sure if it's because of spaces.

Finally, the problem of environment configuration is solved by using the http://www.linuxidc.com/linux/2011-08/40684.htm connection method. However, I didn't have openjdk in 12.04, so I only changed the bashrc environment variable.

We hope to become a master of linux in the future.

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.