blob: 80939bac140cb487a4f9f4aa22a3a792ce7b16aa [file] [log] [blame]
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<title>NetBeans IDE 安装说明</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="description" content="NetBeans IDE 在各种操作系统上的安装指南">
<link rel="stylesheet" type="text/css" href="../../../netbeans.css">
</head>
<body>
<h1>NetBeans&trade; IDE 4.0 安装说明 </h1>
<p><b>本部分详细介绍了 IDE 在以下操作系统上的安装:</b></p>
<ul>
<li><a href="#windows">Windows</a></li>
<li><a href="#solaris">Solaris&trade; 操作系统 (Solaris OS)</a></li>
<li><a href="#linux">Linux</a></li>
<li><a href="#macintosh">Macintosh OS X</a></li>
<li><a href="#other">其他操作系统 </a></li>
<li><a href="#archives"> 归档文件发行版本 </a></li>
</ul>
<p>有关系统要求和其他信息(如使用不同的启动参数启动 IDE),请参见<a href="relnotes_zh_CN.html">发行说明</a><br> <a name="windows">
<h2>Windows</h2>
</a>
<p>在 Microsoft Windows 计算机上,最好使用自解压的安装程序来安装 NetBeans IDE。</p>
<blockquote>
<p><b>使用 Windows 安装程序</b></p>
<p>要安装 NetBeans IDE,请执行以下步骤:</p>
<ol>
<li>在下载安装程序文件后,双击安装程序的图标以启动安装向导。
<li>指定 NetBeans IDE 的安装目录。</li>
<li>指定将运行 IDE 的 Java&trade; 2 软件开发工具包。</li>
</ol>
<p><b>启动 NetBeans IDE</b></p>
<p>要启动 IDE,请执行以下操作之一:</p>
<ul>
<li>双击桌面上的 "NetBeans IDE" 图标。</li>
<li>从“开始”菜单中,选择 "NetBeans IDE 4.0" &gt; "NetBeans IDE"。</li>
</ul>
<!--<p><b>Using Archive Installations on Windows </b></p>
<p>While the installer described above is the preferred method of installation
on Microsoft Windows machines, you can also install NetBeans IDE using a <tt>tar.gz</tt> or <tt>zip</tt> file.
Common archive utilities like Winzip can work with both of these file types. </p>
<p>To install NetBeans IDE:</p>
<ol>
<li>Locate the archive that you have downloaded and double-click it to open
your archive file tool.</li>
<li>Using your archive tool, extract all files to an empty directory, such
as <tt>C:\NetBeans IDE 4.0</tt>.</li>
</ol>
<p>To launch NetBeans IDE:</p>
<ol>
<li>Navigate to the <tt>bin</tt> subdirectory of your NetBeans IDE installation.</li>
<li>Double-click <tt>runide.exe</tt> to start NetBeans IDE.</li>
</ol>
</ul>-->
</blockquote>
<br> <a name="solaris">
<h2>Solaris&trade; 操作系统 (Solaris OS) </h2>
</a>
<p>在运行 Solaris&trade; 操作系统的计算机上,最好使用二进制安装程序来安装 NetBeans IDE。 </p>
<blockquote>
<p><b>使用 Solaris 安装程序</b></p>
<p>要安装 NetBeans IDE,请执行以下步骤:</p>
<ol>
<li>浏览到包含安装程序的目录。</li>
<li>如有必要,请在命令提示符下键入以下内容,以便更改安装程序文件的权限,使二进制文件成为可执行文件:
<blockquote> <code> $ chmod +x <i>your_binary_executable</i></code></blockquote>
<p><b>注意:</b>确保将 <code><i>your_binary_executable</i></code> 替换为下载的二进制文件的实际文件名。</p>
</li>
<li>在命令提示符下键入以下内容以启动安装程序:
<blockquote> <code>$ ./<i>your_binary_executable</i></code></blockquote>
<p><b>注意:</b>仍要确保将 <code><i>your_binary_executable</i></code> 替换为下载的二进制文件的实际文件名。</p>
</li>
</ol>
<blockquote>安装程序搜索已安装的 JDK,并提示您指定安装程序应使用的 JDK。您也可以在命令行中指定安装程序应使用的 JDK。例如:
<blockquote><code> $ ./<i>your_binary_executable</i> -is:javahome <i>path_to_your_jdk</i> </code></blockquote>
</blockquote>
<p><b>启动 NetBeans IDE</b></p>
<p>要启动 IDE,请执行以下步骤:
<ol>
<li>浏览到安装目录的 <tt>bin</tt> 子目录。
<li>键入 <tt>./netbeans</tt> 以执行启动程序脚本。
</ol>
<!--<p><b>Using Archive Installations on Solaris </b></p>
<p>To install NetBeans IDE:
<ol>
<li>Navigate to the directory where you downloaded the archive file.</li>
<li>Untar the archive distribution to a clean directory by typing the following
from a command prompt:
</p>
<blockquote><code> $ gzip -d <i>NetBeans.tar.gz</i> </code></blockquote>
<p><b>Note:</b> be sure to replace <i>NetBeans.tar.gz</i> with the actual
file name.
</li>
</ol>
<p><i><b>Note</b>: Solaris users should use GNU tar for <tt>tar.gz</tt> files
to ensure that the whole archive is unpacked.</i></p>-->
</blockquote>
<br> <a name="linux">
<h2>Linux </h2>
</a>
<p>在 Linux 计算机上,最好使用二进制安装程序来安装 NetBeans IDE。 </p>
<blockquote>
<p><b>使用 Linux 安装程序</b></p>
<p>要安装 NetBeans IDE,请执行以下步骤:</p>
<ol>
<li>浏览到包含安装程序的目录。</li>
<li>如有必要,请在命令提示符下键入以下内容,以便更改安装程序文件的权限,使二进制文件成为可执行文件:
<blockquote> <code> $ chmod +x <i>your_binary_executable</i></code></blockquote>
<p><b>注意:</b>确保将 <code><i>your_binary_executable</i></code> 替换为下载的二进制文件的实际文件名。</p>
</li>
<li>键入以下内容以启动安装程序:
<blockquote> <code>$ ./<i>your_binary_executable</i></code></blockquote>
<p><b>注意:</b>仍要确保将 <code><i>your_binary_executable</i></code> 替换为下载的二进制文件的实际文件名。</p>
</li>
</ol>
<blockquote>安装程序搜索已安装的 JDK,并提示您指定安装程序应使用的 JDK。您也可以在命令行中指定安装程序应使用的 JDK。例如:
<blockquote><code> $ ./<i>your_binary_executable</i> -is:javahome <i>path_to_your_jdk</i> </code></blockquote>
</blockquote>
<!--<p><b>Using Archive Installations on Linux </b></p>
<p>To install NetBeans IDE:</p>
<ol>
<li>Navigate to the directory where you downloaded the archive file.</li>
<li>Use the appropriate tools to untar or unzip the archive distribution to
a clean directory by typing the following from a command prompt:
</p>
<blockquote><code> $ gzip -d <i>NetBeans.tar.gz</i> <br>
$ tar xf <i>NetBeans.tar</i> </code></blockquote>
</li>
</ol>
<p>To launch NetBeans IDE:</p>
<ol>
<li>Change directories to the <tt>bin</tt> subdirectory of your installation</li>
<li>Execute the launcher script by typing <tt>./runide.sh</tt>.</li>
</ol>-->
<p><b>启动 NetBeans IDE</b></p>
<p>要启动 IDE,请执行以下步骤:
<ol>
<li>浏览到安装目录的 <tt>bin</tt> 子目录。
<li>键入 <tt>./netbeans</tt> 以执行启动程序脚本。
</ol>
</blockquote>
<br> <a name="macintosh">
<h2>Macintosh OS X</h2>
</a>
<p>在 Macintosh OS X 上,NetBeans 是以本机应用程序包的形式提供的。最好使用压缩包 (<tt>.tar.gz</tt>) 文件来安装 NetBeans IDE。</p>
<blockquote>
<p><b>使用压缩包 (<tt>.tar.gz</tt>) 文件</b></p>
<p>要安装 NetBeans IDE,请执行以下步骤:
<ol>
<li>将压缩包下载到系统上的所需位置。
<li>双击该文件,将内容解压缩到系统上。
</ol>
<p><b>启动 NetBeans IDE</b>
<p>要启动 IDE,请执行以下步骤:
<ul>
<li>双击 NetBeans 应用程序图标。
</ul>
<!--<p><b>Using Archive Installations on the Mac OS platform</b></p>
<p>To install NetBeans IDE:</p>
<ol>
<li>Open the Terminal application and change directories to where you would
like to install the IDE.
<li>On the command line type (replacing <i>NetBeans.tar.gz</i> with the actual
filename of the distribution that you downloaded):
<blockquote><code> gnutar -xvzf <i>netbeans.tar.gz</i> </code></blockquote>
</li>
</ol>
<p>To launch NetBeans IDE:
<ol>
<li>Navigate to the <tt>bin</tt> subdirectory of your installation. </li>
<li>Execute the <tt>runide.sh</tt> launcher script.</li>
</ol>-->
</blockquote>
<br> <a name="other">
<h2>其他操作系统</h2>
</a>
<p>如果使用的操作系统没有安装程序,您仍然可以使用 NetBeans IDE,方法是:下载并安装归档文件发行版本。有关详细信息,请参见下面的<a href="#archives">归档文件发行版本</a>一节。 </p>
<br> <a name="archives">
<h2>归档文件发行版本</h2>
</a>
<p>如果要测试内部开发版本,或者由于使用的操作系统没有安装程序,您还可以安装 IDE 的归档文件发行版本。</p>
<blockquote>
<p><b>使用归档文件发行版本 </b></p>
<p>要安装 NetBeans IDE,请执行以下步骤: </p>
<ol>
<li>浏览到包含归档文件的目录。
<li>使用适合系统的实用程序解压缩归档文件。
</ol>
<p><b>启动 NetBeans IDE</b> </p>
<p>要启动 NetBeans IDE,请执行以下步骤:
<ol>
<li>浏览到 NetBeans IDE 安装目录的 <tt>bin</tt> 子目录。</li>
<li>执行适合系统的启动程序。
</li>
</ol>
<p>归档文件发行版本中包含以下启动程序:
</p>
<blockquote>
<p><tt>netbeans.exe</tt> - Windows <br> <tt>netbeansw.exe</tt> - Windows(无控制台窗口)<br> <tt>netbeans</tt> - UNIX、Linux <br> <tt>macosx_launcher.dmg</tt> - Mac Os<br> <tt>netbeans.cmd</tt> - OS/2 </p>
<!--<tt>netbeansopenvms.com</tt> - OpenVMS --></blockquote>
<p>如果没有适合操作系统的特定启动程序,则可能需要修改相应脚本以创建一个启动程序。不过,如果您的计算机支持 JDK 1.4.2 或更高版本,则应该能够运行 IDE。
<p><i><b>注意</b>:如果创建了启动程序,您可以将其提供给 NetBeans 项目。有关详细信息,请参见 <a href="https://netbeans.org/community/contribute/index.html">Contributing to netbeans.org</a></i>
</blockquote>
</body>
</html>