1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright © 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
9
<TITLE>Setting a Proxy</TITLE>
10
<link rel="StyleSheet" href="../ide.css" type="text/css">
14
<h2>Setting a Proxy</h2>
16
<small><a href="#seealso">See Also</a></small></p>
17
<p>If you want to use the Update Center or access the Internet through the IDE, but your system is behind a firewall or you use a proxy server, you
18
need to configure the IDE with your proxy settings.</p>
19
<p><b>To use an HTTP proxy:</b></p>
21
<li>From the main menu, choose Tools > Options from the main menu and click General in the left pane of the Options window.</li>
22
<li>Select HTTP Proxy as the proxy type.</li>
23
<li>Type the proxy host name and the proxy port number.</li>
26
<p><b>To use a SOCKS proxy:</b></p>
27
<p>To run the IDE using a SOCKS proxy, you must pass the SOCKS proxy host and proxy port parameters to the JVM software
28
when you start the IDE. On Microsoft Windows machines, use the <i>IDE-HOME</i><tt>/etc/netbeans.conf</tt> file to pass the parameters.
29
On UNIX and Linux machines, you can write a wrapper shell script.</p>
30
<p><b>On a Microsoft Windows machine:</b>
33
<li>In the IDE's installation directory, expand the <tt>etc</tt> directory.</li>
34
<li>If an <tt>netbeans.conf</tt> file is not there, create one.</li>
35
<li>Open <tt>netbeans.conf</tt> in a text editor and type:
36
<p><tt>-J-DsocksProxyHost=</tt><i>SOCKS-SERVER</i> <tt>-J-DsocksProxyPort=1080</tt></p>
38
For <i>SOCKS-SERVER,</i> use the host name of your SOCKS proxy.
40
<li>Save <tt>netbeans.conf</tt> and close it.</li>
41
<li>Restart the IDE.</li></ol>
45
<p><b>On a UNIX or Linux machine:</b></p>
47
<li>Change directory to your <i>IDE-installation</i><tt>/bin</tt> directory.</li>
48
<li>Create a new shell script file.</li>
49
<li>Open the new shell file in a text editor and type:
50
<p><tt>runide.sh -J-DsocksProxyHost=</tt><i>SOCKS-SERVER</i> <tt>-J-DsocksProxyPort=1080</tt></p>
52
For <i>SOCKS-SERVER,</i> use the host name of your SOCKS proxy.
54
<li>Save the shell script and close it.</li>
55
<li>Restart the IDE with the new shell script.</li>
60
<a name="seealso">See Also</a></dt>
62
<dd> <a href="bypassproxy.html">Accessing Local Files Through a Proxy</a></dd>
63
<dd> <a href="../configure/configure_options.html">Using the Options Window</a></dd>
67
<small><a href="../credits.html">Legal Notices</a></small>
68
<table border="0" cellpadding="50">
69
<tr><td> </td></tr>