Compile Java source code proxy settings in Linux

Source: Internet
Author: User

The tool used to compile openjdk is Ant. During this period, it will be connected to the Internet to provide necessary code or tools,

So if you use a proxy to access the Internet, you may be in a little trouble. java.net. connectexception: You will be prompted for an exception.

Then, the system immediately exits with an error and starts to think That download.java.net is under a wall;

The results Google, found this brother (http://forum.hadoop.tw/viewtopic.php? F = 4 & t = 2043)

I encountered the same problem when compiling the hadoop source code. He and I both use ant as the tool, and I useIEThe Network on the proxy.

Naturally, I thought it was a proxy, so I set it in CLI according to the instructions, OK;

Export
Ant_opts = "-dhttp. proxyhost = proxy-dhttp. proxyport = 8080"


Hadoop is very popular recently. I believe many of my friends will also encounter it and hope it will be useful to everyone.

Http://ant.apache.org/manual/proxy.html (details)

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.