News, tips, partners, and perspectives for the Oracle Solaris operating system


Guest Author

JavaFX isn't available for Linux and OpenSolaris yet. As to why, I suggest you read Josh Marinacci's blog: A Word on Linux and Solaris Support. However, this hasn't stopped the community from documenting how to install JavaFX on Linux. And not surprisingly, those instructions work very well for OpenSolaris. With some minor adjustments, here are the exact steps I to took to get the JavaFX SDK running in NetBeans on OpenSolaris.

Step 1. Install NetBeans

The NetBeans IDE makes working with the JavaFX SDK much more enjoyable. You'll need NetBeans 6.5, if you don't already have it installed:

bleonard@opensolaris:~$ pfexec pkg install netbeans

PHASE                                          ITEMS
Indexing Packages 554/554
Completed 22/22 5931/5931 204.40/204.40
Install Phase 7387/7387
Reading Existing Index 9/9
Indexing Packages 22/22

Step 2. Downoad the NetBeans JavaFX Plugins

The JavaFX Plugins can be found here: http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/javafx/. We'll use wget to download them:

bleonard@opensolaris:~$ mkdir javafxnbms
bleonard@opensolaris:~$ cd javafxnbms
bleonard@opensolaris:~/javafxnbms$ wget -r -l1 -np -nH --cut-dirs=9 -A.nbm http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/javafx
--12:02:12-- http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/javafx
=> `javafx'
Resolving updates.netbeans.org...

FINISHED --12:05:10--
Downloaded: 68,475,450 bytes in 25 files

Step 3: Install the JavaFX Plugins

  1. Start NetBeans and select Plugins from the Tools menu.
  2. Select the Downloaded tab and click the Add Plugins... button
  3. Browse to the javafxnbms directory, select all of the plugins and click OK.
  4. Uncheck the JavaFX Weather Sample, JavaFX 1.0 and JavaFX Source Debug plugins.  These plugins are leftovers from the Preview SDK and will fail to install. Your Plugins dialog should look as follows (click to zoom):

  5. Install the 18 selected plugins. When the plugin installation finishes, NetBeans will automatically restart. Don't worry about any exceptions you may see, because we haven't installed the SDK yet.
  6. Quit NetBeans.

Step 4: Install the JavaFX SDK

  1. NetBeans plugin files (nbms) are standard zip archive files. One of the plugins downloaded was the SDK for OS X. Assuming you're still in the javafxnbms directory:
  2. bleonard@opensolaris:~/javafxnbms$ unzip org-netbeans-modules-javafx-sdk-mac.nbm
    inflating: main/main.properties
    inflating: main/org/netbeans/javafx/install/Install.class

  3. Create a directory under NetBeans for the JDK.
  4. pfexec mkdir /usr/netbeans/javafx2

  5. Copy the contents of the extracted plugin to NetBeans:
    pfexec cp -r netbeans/\* /usr/netbeans/javafx2/
  6. Make the SDK's binaries executable:
    pfexec chmod +x /usr/netbeans/javafx2/javafx-sdk1.0/bin/\*

Step 5: Learn/Play

Start NetBeans. There are a bunch of JavaFX Sample projects. To create one, select File > New Project and then Samples > JavaFX under the categories. For example, here's the DisplayShelf (click to zoom):

To get started with learning JavaFX, check out the tutorials.

Join the discussion

Comments ( 16 )
  • James Gosling Wednesday, February 4, 2009

    It works even better if you install JDK6u12 on Solaris: it has a number of fixes to X11 support, in particular: translucent windows. Startup time and anti-aliased rendering performance also got a boost. This version isn't yet in the OpenSolaris update repository, but it will be soon.

  • Luca Morettoni Wednesday, February 4, 2009

    Great news James, we wait it into OpenSolaris :)

  • Marina Sum's Blog Friday, February 6, 2009
    [Trackback] Brian Leonard has posted a five-step tutorial.
  • Ankara Bilgisayar Bilgisayar Satis Thursday, February 19, 2009

    Thanks for the nice and explanatory article!

  • Luc Duponcheel Saturday, March 14, 2009

    the instructions confront me with a chicken-and-egg problem

    - if the javafx sdk (the mac-os one ) is not installed the plugins refuse to install because they require the javafx sdk (the Next button is 'grayed-out')

    - if the javafx sdk (the mac-os one ) is installed netbeans refuses to start, unless I disable the javafx-sdk

    what a pity

  • Luc Duponcheel Saturday, March 14, 2009


    I did not install netbeans as a package,

    but installed it using netbeans-6.5-ml-solaris-x86.sh


  • Luc Duponcheel Saturday, March 14, 2009

    I tried with the package based netbeans as well:

    same problem


  • Luca Morettoni Monday, April 6, 2009

    All work fine for me, now I have NetBeans 6.5.1 + JavaFX running... I hope (again) to see jfx running into Solaris and OpenSolaris as soon as possibile!!!

  • Sly Slipstream Tuesday, April 7, 2009

    Works for me, thank you.

    1. Make sure netbeans is installed in /usr/netbeans

    2. Make sure to chmod +x all javafx binaries

  • Luca Morettoni Wednesday, April 8, 2009

    @Sly all work fine for me too, and I have NetBeans installed into my home folder (I didn't installed it from pkg)...

  • Luca Morettoni Friday, April 17, 2009

    @James: any hope to see JavaFX (and related tools) under (Open)Solaris? I think that couple could be a killer app...

  • kelebek Sunday, April 26, 2009


  • Sebastien Stormacq Sunday, May 3, 2009

    Same problem as Luc above ... any workaround ?

  • David Comay Saturday, May 23, 2009

    The JavaFX run-time is in the /dev repository and will be part of the OpenSolaris 2009.06 Live CD.

    The SDK is scheduled to be available in the /extra repository very soon now.

  • araç sorgulama Friday, January 8, 2010

    All work fine for me, now I have NetBeans 6.5.1 + JavaFX running... I hope (again) to see jfx running into Solaris and OpenSolaris as soon as possibile!!!

  • Brian Leonard Friday, January 8, 2010

    The JavaFX SDK is now freely available for OpenSolaris. These steps are no longer necessary.


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