Installing NetBeans on OpenSolaris

Guest Author

Installation experience of NetBeans on OpenSolaris over network is similar to the experience on Ubuntu. The nice thing is that OpenSolaris repository contains the full version of the IDE, not just the stripped-down Java version. I tried installing NetBeans:

roman@opensolaris:~# pkg install netbeans

pkg: no package matching 'netbeans' could be found in current catalog
     suggest relaxing pattern, refreshing and/or examining catalogs
pkg: install failed: Unable to assemble image plan

The problem is that the repository has just been updated (NetBeans has been added very recently) so I need to refresh the repository first:

roman@opensolaris:~# pkg refresh

Then I could run:

pkgroman@opensolaris:~# pkg install netbeans
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                  17/17   5420/5420 339.92/339.92

PHASE                                        ACTIONS
Install Phase                              6393/6393 

To verify the installation you can run:

roman@opensolaris:~# pkg list netbeans
NAME (AUTHORITY)                              VERSION         STATE      UFIX
netbeans                                      6.0.1-0.86      installed  ----

To find out where NetBeans got installed I ran:

roman@opensolaris:~# pkg search netbeans
INDEX      ACTION    VALUE                     PACKAGE
basename   dir       usr/netbeans/ide8/docs/org/netbeans pkg:/SUNWlibnb-ide8@6.0.1-0.86
basename   dir       usr/netbeans/enterprise4/ant/sources/org/netbeans pkg:/SUNWlibnb-enterprise4@6.0.1-0.86
basename   file      usr/netbeans/bin/netbeans pkg:/SUNWnetbeans-ide@6.0.1-0.86
basename   dir       usr/netbeans/java1/sources/org/netbeans pkg:/SUNWlibnb-java1@6.0.1-0.86

So now I could run NetBeans by calling:

roman@opensolaris:~# /usr/netbeans/bin/netbeans

My next wish is that we would fix the UI of NetBeans on Solaris. The toolbars look really broken and default editor font should really be monospace :(

Join the discussion

Comments ( 5 )
  • Michal Bielicki Friday, April 25, 2008

    how do you handle plugins ? Via netbeans or via pkg ?

  • Roman Friday, April 25, 2008

    Via NetBeans.

  • Brian Leonard Friday, April 25, 2008

    Roman, it appears that you've su'd as root to install NetBeans. Is sudo available for OpenSolaris?

  • Roman Strobl Friday, April 25, 2008

    In OpenSolaris root is a role - which is why you see my username "roman". There's pfexec if you are looking for something like sudo. See:


  • Daniel Price Thursday, May 1, 2008

    For what it's worth, we're hoping to eliminate the need for "pkg refresh" in a future version. I'm glad it's working well for you!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha