Difference between revisions of "Netbeans"

From ArchWiki
Jump to: navigation, search
(GTK look and feel)
m (restructured, interlinked with "Java" properly)
Line 1: Line 1:
 
[[Category:Development (English)]]
 
[[Category:Development (English)]]
Netbeans IDE is an integrated development environment (IDE) for developing with Java, JavaScript, PHP, Python, Ruby, Groovy, C, C++, Scala, Clojure, and other languages.
+
'''Netbeans''' is an integrated development environment (IDE) for developing with Java, JavaScript, PHP, Python, Ruby, Groovy, C, C++, Scala, Clojure, and other languages.
  
The NetBeans IDE is written in Java and runs everywhere where a JVM is installed, including Windows, Mac OS, Linux, and Solaris. A JDK is required for Java development functionality, but is not required for development in other programming languages.
+
From [[Wikipedia:Netbeans|Wikipedia article]]:
 +
:"''The NetBeans IDE is written in Java and can run anywhere a compatible JVM is installed, including Windows, Mac OS, Linux, and Solaris. A JDK is required for Java development functionality, but is not required for development in other programming languages.''"
  
(based on wikipedia)
+
== Tips and tricks ==
 +
=== Font antialiasing in Netbeans ===
 +
See [[Java#Better font rendering ]].
  
== Font antialiasing in Netbeans ==
+
=== GTK look and feel ===
 
+
To change Netbeans look and feel to GTK add switch {{Ic|--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel}} to IDE command line by appending it to ‘netbeans_default_options’ section of {{Ic|/usr/share/netbeans/etc/netbeans.conf}} or editing ''.desktop'' file with which you launch Netbeans.
Based on: http://ibnaziz.wordpress.com/2009/06/10/netbeans-anti-aliasing/
+
 
+
Problem :
+
 
+
For some time now, the newer version of netbeans, no longer displays the “Advanced Options” that allows for anti-aliased fonts. And frankly speaking, the fonts look terrible.
+
 
+
Solution :
+
 
+
Edit the file ''/usr/share/netbeans/etc/netbeans.conf'' and add the switches ‘-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on’ to ‘netbeans_default_options’.
+
 
+
== GTK look and feel ==
+
 
+
For change netbeans look and feel to GTK Edit the file ''/usr/share/netbeans/etc/netbeans.conf'' and add the switch --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel’ to ‘netbeans_default_options’.
+
  
 
== Troubleshooting ==
 
== Troubleshooting ==
 
 
=== OpenJDK vs Sun's JDK ===
 
=== OpenJDK vs Sun's JDK ===
 
Netbeans 7.0-1 will not ALWAYS work with OpenJDK. Some reported issues are:
 
Netbeans 7.0-1 will not ALWAYS work with OpenJDK. Some reported issues are:
Line 38: Line 27:
  
 
=== Netbeans doesn't start after its first start ===
 
=== Netbeans doesn't start after its first start ===
 
 
If you receive a message like this when executing from terminal:
 
If you receive a message like this when executing from terminal:
<pre style='overflow:auto'>
+
{{hc|# netbeans -h|
# netbeans -h
+
  Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libsplashscreen.so: libgif.so.4: cannot open shared object file: No such file or directory
  Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libsplashscreen.so: libgif.so.4: cannot open shared object file: No such file or directory</pre>
+
}}
  
 
You have two options:
 
You have two options:
 
* You can start Netbeans using the --nosplash option:
 
* You can start Netbeans using the --nosplash option:
 
  # netbeans --nosplash
 
  # netbeans --nosplash
* Or, install the missing library (then starting Netbeans as usual will work) :
+
* Or, install the missing library ({{Pkg|libungif}}), then starting Netbeans as usual will work.
# sudo pacman -S libungif
+
  
 
[https://bbs.archlinux.org/viewtopic.php?id=118930 Arch forum thread]
 
[https://bbs.archlinux.org/viewtopic.php?id=118930 Arch forum thread]
  
 
=== Netbeans starts with a completely grey window ===
 
=== Netbeans starts with a completely grey window ===
If you experience a completely grey window on starting up netbeans with tiling WindowManagers such as dwm or xmonad try:
+
If you experience a completely grey window on starting up IDE with tiling WindowManagers such as [[dwm]] or [[xmonad]] install {{Pkg|wmname}}.
# pacman -S wmname
+
Then add the following line to your {{Ic|~/.xinitrc}} file:
Then add the following line to your ~/.xinitrc file:
+
 
  # wmname LG3D
 
  # wmname LG3D

Revision as of 06:29, 29 January 2012

Netbeans is an integrated development environment (IDE) for developing with Java, JavaScript, PHP, Python, Ruby, Groovy, C, C++, Scala, Clojure, and other languages.

From Wikipedia article:

"The NetBeans IDE is written in Java and can run anywhere a compatible JVM is installed, including Windows, Mac OS, Linux, and Solaris. A JDK is required for Java development functionality, but is not required for development in other programming languages."

Tips and tricks

Font antialiasing in Netbeans

See Java#Better font rendering .

GTK look and feel

To change Netbeans look and feel to GTK add switch --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel to IDE command line by appending it to ‘netbeans_default_options’ section of /usr/share/netbeans/etc/netbeans.conf or editing .desktop file with which you launch Netbeans.

Troubleshooting

OpenJDK vs Sun's JDK

Netbeans 7.0-1 will not ALWAYS work with OpenJDK. Some reported issues are:

  • Starting - In some cases, netbeans will not start.
  • Installation - The .sh script provided by netbeans will not launch wizard.

Glassfish server - Can`t download Glassfish server I/O Exception

If you are trying add new Glassfish server, you can`t download the server. Netbeans returns

I/O Exception: http://java.net/download/glassgish/3.0.1/release/glassfish-3.0.1-ml.zip

Solution is:

Netbeans doesn't start after its first start

If you receive a message like this when executing from terminal:

# netbeans -h
 Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libsplashscreen.so: libgif.so.4: cannot open shared object file: No such file or directory

You have two options:

  • You can start Netbeans using the --nosplash option:
# netbeans --nosplash
  • Or, install the missing library (libungif), then starting Netbeans as usual will work.

Arch forum thread

Netbeans starts with a completely grey window

If you experience a completely grey window on starting up IDE with tiling WindowManagers such as dwm or xmonad install wmname. Then add the following line to your ~/.xinitrc file:

# wmname LG3D