个人工具
登录
查看“UbuntuHelp:Netbeans”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Netbeans”的源代码
来自Ubuntu中文
←
UbuntuHelp:Netbeans
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Netbeans}} {{Languages|php5}} Parent page: [[UbuntuHelp:Programming| Programming Applications]] The [http://www.netbeans.org/products/ide/ NetBeans IDE] is an open-source, fast and feature full tool for developing Java software. It is standards compliant and runs on any operating system where a Java Virtual Machine is available. For instructions on installing Netbeans 4.1 on AMD64, see [[UbuntuHelp:Netbeans4.1onAMD64]]. == Installation == To install and run Netbeans, you will need to have an Java SDK. The default Java JRE provided with Breezy (GCJ) is not enough to install and run Netbeans. To install a Java SDK, see "Getting Java" on RestrictedFormats. Download Netbeans from their [http://www.netbeans.info/downloads/index.php download page], choose the version that suits your needs. Open a terminal and cd to the folder where you put the downloaded file and make this file executable. <pre><nowiki> cd <your_download_dir> chmod +x <downloaded_file> </nowiki></code> To install system-wide installation, run the file with sudo and follow the instruction. <pre><nowiki> sudo ./<downloaded_file> </nowiki></code> To install for your user, simply run the file and follow the instruction. When asked, choose an install directory and be sure your user has write access to it. <pre><nowiki> ./<downloaded_file> </nowiki></code> Note: If Netbeans is unable to find JDK try appending -is:javahome /usr/lib/jvm/java-* to the install command. To run Netbeans, use <netbeans_install_dir>/bin/netbeans. == Post-Installation Setup == If you install system-wide a Netbeans bundled with Sun's J2EE Application Server, you will not be able to use the default domain (domain1) from a non-privileged user account. The installed files are owned by the root account and some are read/write protected. An easy solution is to give all the files in the domain1 directory to your user. <pre><nowiki> sudo chown -R <your_user>:<your_user> <SUNWappserver_install_dir>/domains/domain1 </nowiki></code> In Netbeans, in the "Runtime" right-click to the "Server" item to "Add Server...". In the wizard, use your SUNWappserver directory as "Platform Location" and choose yhe default domain in the drop-down box. After clicking "Next", enter the default admin user (admin) and password (adminadmin) and click "Finish". A more cleaner solution, is to make a copy of domain1 and then give files in this copy to your user. Because they contain path specific information, you will have to edit the following files: bin/starserv and bin/stopserv. <pre><nowiki> sudo cp -R <SUNWappserver_install_dir>/domains/domain1 <copy_destination> sudo chown -R <your_user>:<your_user> <copy_destination>/domain1 cd <copy_destination>/domain1 gedit bin/startserv bin/stopserv </nowiki></code> in each file, search the line that looks like <pre><nowiki> INSTANCE_ROOT=<SUNWappserver_install_dir>/domains/domain1 </nowiki></code> and replace it with <pre><nowiki> INSTANCE_ROOT=<copy_destination>/domain1 </nowiki></code> In Netbeans, in the "Runtime" right-click to the "Server" item to "Add Server...". In the wizard, use your SUNWappserver directory as "Platform Location", choose "Register Local Domain" and click "Next". Use your copy of domain1 as "Domain Folder" and, after clicking "Next", enter the default admin user (admin) and password (adminadmin) and click "Finish". ---- CategoryDocumentation [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Netbeans
。