特殊:Badtitle/NS100:Netbeans
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Netbeans }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/af | • {{#if: php5|Afrikaans| [[::Netbeans/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ar | • {{#if: php5|العربية| [[::Netbeans/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/az | • {{#if: php5|azərbaycanca| [[::Netbeans/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::Netbeans/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/bg | • {{#if: php5|български| [[::Netbeans/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/br | • {{#if: php5|brezhoneg| [[::Netbeans/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ca | • {{#if: php5|català| [[::Netbeans/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/cs | • {{#if: php5|čeština| [[::Netbeans/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/de | • {{#if: php5|Deutsch| [[::Netbeans/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/el | • {{#if: php5|Ελληνικά| [[::Netbeans/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/es | • {{#if: php5|español| [[::Netbeans/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/fa | • {{#if: php5|فارسی| [[::Netbeans/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/fi | • {{#if: php5|suomi| [[::Netbeans/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/fr | • {{#if: php5|français| [[::Netbeans/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/gu | • {{#if: php5|ગુજરાતી| [[::Netbeans/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/he | • {{#if: php5|עברית| [[::Netbeans/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/hu | • {{#if: php5|magyar| [[::Netbeans/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/id | • {{#if: php5|Bahasa Indonesia| [[::Netbeans/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/it | • {{#if: php5|italiano| [[::Netbeans/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ja | • {{#if: php5|日本語| [[::Netbeans/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ko | • {{#if: php5|한국어| [[::Netbeans/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ksh | • {{#if: php5|Ripoarisch| [[::Netbeans/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/mr | • {{#if: php5|मराठी| [[::Netbeans/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ms | • {{#if: php5|Bahasa Melayu| [[::Netbeans/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/nl | • {{#if: php5|Nederlands| [[::Netbeans/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/no | • {{#if: php5|norsk| [[::Netbeans/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/oc | • {{#if: php5|occitan| [[::Netbeans/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/pl | • {{#if: php5|polski| [[::Netbeans/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/pt | • {{#if: php5|português| [[::Netbeans/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ro | • {{#if: php5|română| [[::Netbeans/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/ru | • {{#if: php5|русский| [[::Netbeans/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/si | • {{#if: php5|සිංහල| [[::Netbeans/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/sq | • {{#if: php5|shqip| [[::Netbeans/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/sr | • {{#if: php5|српски / srpski| [[::Netbeans/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/sv | • {{#if: php5|svenska| [[::Netbeans/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/th | • {{#if: php5|ไทย| [[::Netbeans/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/tr | • {{#if: php5|Türkçe| [[::Netbeans/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/vi | • {{#if: php5|Tiếng Việt| [[::Netbeans/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/yue | • {{#if: php5|粵語| [[::Netbeans/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/zh | • {{#if: php5|中文| [[::Netbeans/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/zh-hans | • {{#if: php5|中文(简体)| [[::Netbeans/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Netbeans}}/zh-hant | • {{#if: php5|中文(繁體)| [[::Netbeans/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:Netbeans|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Netbeans/zh | | {{#ifexist: Netbeans/zh | | {{#ifeq: {{#titleparts:Netbeans|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Netbeans|1|-1|}} | zh | | }}
Parent page: Programming Applications
The 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 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.
cd <your_download_dir> chmod +x <downloaded_file> To install system-wide installation, run the file with sudo and follow the instruction.sudo ./<downloaded_file> 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../<downloaded_file> 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.sudo chown -R <your_user>:<your_user> <SUNWappserver_install_dir>/domains/domain1 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.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 in each file, search the line that looks likeINSTANCE_ROOT=<SUNWappserver_install_dir>/domains/domain1 and replace it withINSTANCE_ROOT=<copy_destination>/domain1 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