特殊:Badtitle/NS100:Netbeans:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第4行: | 第4行: | ||
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. | 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. | ||
== Installing the Latest Version Directly from Binaries == | == Installing the Latest Version Directly from Binaries == | ||
The version of NetBeans available from synaptic or apt-get is out-of-date | The version of NetBeans available from synaptic or apt-get is usually out-of-date from the version available directly from NetBeans. For example Ubuntu Jaunty 9.04 contains Netbeans 6.5 in repository while release 6.7 is pending. If you are required to run the latest release please proceed in reading the rest of this section. This section covers the installation of NetBeans 6.5 from binaries downloaded directly from the NetBeans website but it can most likely be applied to future release so it is left here for reference. | ||
=== Quick and Easy way to install Netbeans === | === Quick and Easy way to install Netbeans === | ||
[https://config.emergsoft.com/direct_deploy?token=3aa0be9f9c32b35db4cabb7af165af89fb205e18 Install Netbeans 6.5] - This downloads directly from www.netbeans.org. It also configures Ubuntu rubygems to work inside Netbeans. | [https://config.emergsoft.com/direct_deploy?token=3aa0be9f9c32b35db4cabb7af165af89fb205e18 Install Netbeans 6.5] - This downloads directly from www.netbeans.org. It also configures Ubuntu rubygems to work inside Netbeans. | ||
第35行: | 第35行: | ||
# Run NetBeans! | # Run NetBeans! | ||
netbeans | netbeans | ||
</nowiki></pre> | |||
Alternatively, you can just add /usr/local/netbeans-6.5/bin to your PATH, or you can run the following if you don't even want to mess with your PATH: | |||
<pre><nowiki> | |||
ln -s /usr/local/netbeans-6.5/bin/netbeans /usr/local/bin/netbeans | |||
</nowiki></pre> | </nowiki></pre> | ||
=== Missing Java === | === Missing Java === |
2009年11月17日 (二) 20:12的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Netbeans }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/af | • {{#if: UbuntuHelp:Netbeans|Afrikaans| [[::Netbeans/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ar | • {{#if: UbuntuHelp:Netbeans|العربية| [[::Netbeans/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/az | • {{#if: UbuntuHelp:Netbeans|azərbaycanca| [[::Netbeans/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/bcc | • {{#if: UbuntuHelp:Netbeans|جهلسری بلوچی| [[::Netbeans/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/bg | • {{#if: UbuntuHelp:Netbeans|български| [[::Netbeans/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/br | • {{#if: UbuntuHelp:Netbeans|brezhoneg| [[::Netbeans/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ca | • {{#if: UbuntuHelp:Netbeans|català| [[::Netbeans/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/cs | • {{#if: UbuntuHelp:Netbeans|čeština| [[::Netbeans/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/de | • {{#if: UbuntuHelp:Netbeans|Deutsch| [[::Netbeans/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/el | • {{#if: UbuntuHelp:Netbeans|Ελληνικά| [[::Netbeans/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/es | • {{#if: UbuntuHelp:Netbeans|español| [[::Netbeans/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/fa | • {{#if: UbuntuHelp:Netbeans|فارسی| [[::Netbeans/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/fi | • {{#if: UbuntuHelp:Netbeans|suomi| [[::Netbeans/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/fr | • {{#if: UbuntuHelp:Netbeans|français| [[::Netbeans/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/gu | • {{#if: UbuntuHelp:Netbeans|ગુજરાતી| [[::Netbeans/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/he | • {{#if: UbuntuHelp:Netbeans|עברית| [[::Netbeans/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/hu | • {{#if: UbuntuHelp:Netbeans|magyar| [[::Netbeans/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/id | • {{#if: UbuntuHelp:Netbeans|Bahasa Indonesia| [[::Netbeans/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/it | • {{#if: UbuntuHelp:Netbeans|italiano| [[::Netbeans/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ja | • {{#if: UbuntuHelp:Netbeans|日本語| [[::Netbeans/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ko | • {{#if: UbuntuHelp:Netbeans|한국어| [[::Netbeans/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ksh | • {{#if: UbuntuHelp:Netbeans|Ripoarisch| [[::Netbeans/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/mr | • {{#if: UbuntuHelp:Netbeans|मराठी| [[::Netbeans/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ms | • {{#if: UbuntuHelp:Netbeans|Bahasa Melayu| [[::Netbeans/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/nl | • {{#if: UbuntuHelp:Netbeans|Nederlands| [[::Netbeans/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/no | • {{#if: UbuntuHelp:Netbeans|norsk| [[::Netbeans/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/oc | • {{#if: UbuntuHelp:Netbeans|occitan| [[::Netbeans/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/pl | • {{#if: UbuntuHelp:Netbeans|polski| [[::Netbeans/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/pt | • {{#if: UbuntuHelp:Netbeans|português| [[::Netbeans/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ro | • {{#if: UbuntuHelp:Netbeans|română| [[::Netbeans/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/ru | • {{#if: UbuntuHelp:Netbeans|русский| [[::Netbeans/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/si | • {{#if: UbuntuHelp:Netbeans|සිංහල| [[::Netbeans/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/sq | • {{#if: UbuntuHelp:Netbeans|shqip| [[::Netbeans/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/sr | • {{#if: UbuntuHelp:Netbeans|српски / srpski| [[::Netbeans/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/sv | • {{#if: UbuntuHelp:Netbeans|svenska| [[::Netbeans/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/th | • {{#if: UbuntuHelp:Netbeans|ไทย| [[::Netbeans/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/tr | • {{#if: UbuntuHelp:Netbeans|Türkçe| [[::Netbeans/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/vi | • {{#if: UbuntuHelp:Netbeans|Tiếng Việt| [[::Netbeans/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/yue | • {{#if: UbuntuHelp:Netbeans|粵語| [[::Netbeans/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/zh | • {{#if: UbuntuHelp:Netbeans|中文| [[::Netbeans/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/zh-hans | • {{#if: UbuntuHelp:Netbeans|中文(简体)| [[::Netbeans/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Netbeans | UbuntuHelp:Netbeans | {{#if: | :}}Netbeans}}/zh-hant | • {{#if: UbuntuHelp:Netbeans|中文(繁體)| [[::Netbeans/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Netbeans|: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.
Installing the Latest Version Directly from Binaries
The version of NetBeans available from synaptic or apt-get is usually out-of-date from the version available directly from NetBeans. For example Ubuntu Jaunty 9.04 contains Netbeans 6.5 in repository while release 6.7 is pending. If you are required to run the latest release please proceed in reading the rest of this section. This section covers the installation of NetBeans 6.5 from binaries downloaded directly from the NetBeans website but it can most likely be applied to future release so it is left here for reference.
Quick and Easy way to install Netbeans
Install Netbeans 6.5 - This downloads directly from www.netbeans.org. It also configures Ubuntu rubygems to work inside Netbeans.
Download the Binaries
You can get the binaries at the NetBeans download page. Download the appropriate version depending on what language(s) you want to develop in. I chose Java. Download the file and save it to your home directory, /home/yourusername. Install netbeans:
cd /home/yourusername sudo sh ./netbeans-6.5-ml-java-linux.sh
Create a script to run netbeans (skip this if you want to invoke it from Applications -> Programming -> NetBeans IDE 6.5 in the Ubuntu menu bar):
cd /home/yourusername mkdir bin cd bin # Create a file called netbeans in the current dir and make its contents exactly as # follows in the next two lines and then save it and then quit your editor: #!/bin/bash /usr/local/netbeans-6.5/bin/netbeans # Make it executable chmod u+x netbeans # Put this in your path for this shell session # (add this line to your .bashrc or .zshrc file in /home/yourusername # to see the path in all future shells; be sure to exit the shell to see the changes though) export PATH=/home/yourusername/bin:$PATH # Run NetBeans! netbeans
Alternatively, you can just add /usr/local/netbeans-6.5/bin to your PATH, or you can run the following if you don't even want to mess with your PATH:
ln -s /usr/local/netbeans-6.5/bin/netbeans /usr/local/bin/netbeans
Missing Java
If the installer fails or cannot find the Java JDK, try
which java which javac
If those both return values, perhaps the installer missed them and you can browse for them manually yourself in the installer. If one of those does not return a value, you need to install Java:
sudo apt-get install sun-java6-bin sun-java6-jdk
The Installer or NetBeans Window is All White or Blank: Problems with Compiz
Although I did not have any problems with NetBeans and Compiz in Ubuntu 8.10, if you are experincing problems you may try changing your netbeans shell file above to be:
#!/bin/bash AWT_TOOLKIT=MToolkit /usr/local/netbeans-6.5/bin/netbeans
This makes NetBeans run with the MToolKit windowing toolkit but leaves the rest of your desktop running in Compiz. This was claimed to work on Ubuntu 7.10.
NetBeans 4.1 on AMD64
For instructions on installing Netbeans 4.1 on AMD64, see Netbeans4.1onAMD64.
Installation of NetBeans from Ubuntu Packages
To install NetBeans you can run Synaptic Packet Manager and install the package named netbeans, or open a terminal and type
sudo apt-get install netbeans
Java SDK will will be automatically installed as dependency if it's not installed. If you want the latest version of NetBeans, you must install it manually.
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 like
INSTANCE_ROOT=<SUNWappserver_install_dir>/domains/domain1
and replace it with
INSTANCE_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".