~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to usersguide/javahelp/org/netbeans/modules/usersguide/webbrowser/proxy.html

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
Import upstream version 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!--
 
3
*     Copyright © 2007 Sun Microsystems, Inc. All rights reserved.
 
4
*     Use is subject to license terms.
 
5
*
 
6
-->
 
7
<HTML>
 
8
<HEAD>
 
9
    <TITLE>Setting a Proxy</TITLE>
 
10
    <link rel="StyleSheet" href="../ide.css" type="text/css">
 
11
</HEAD>
 
12
<BODY>
 
13
 
 
14
<h2>Setting a Proxy</h2>
 
15
<p>
 
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>
 
20
<ol>
 
21
    <li>From the main menu, choose Tools &gt; 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>
 
24
    <li>Click OK.</li>
 
25
</ol>
 
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>
 
31
</p>
 
32
<ol>
 
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>
 
37
<p>
 
38
    For <i>SOCKS-SERVER,</i> use the host name of your SOCKS proxy.
 
39
</p></li>
 
40
<li>Save <tt>netbeans.conf</tt> and close it.</li>
 
41
<li>Restart the IDE.</li></ol>
 
42
 
 
43
 
 
44
 
 
45
<p><b>On a UNIX or Linux machine:</b></p>
 
46
<ol>
 
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>
 
51
    <p>
 
52
        For <i>SOCKS-SERVER,</i> use the host name of your SOCKS proxy.
 
53
    </p></li>
 
54
    <li>Save the shell script and close it.</li>
 
55
    <li>Restart the IDE with the new shell script.</li>
 
56
</ol>
 
57
 
 
58
<dl>
 
59
    <dt>
 
60
    <a name="seealso">See Also</a></dt>
 
61
 
 
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>
 
64
</dl>
 
65
 
 
66
<hr>
 
67
<small><a href="../credits.html">Legal Notices</a></small>
 
68
<table border="0" cellpadding="50">
 
69
    <tr><td>&nbsp;</td></tr>
 
70
</table>
 
71
 
 
72
</body>
 
73
</html>