The Artima Developer Community
Sponsored Link

Java Buzz Forum
JavaFX 1.0 On Linux: NetBeans Plugin

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
JavaFX 1.0 On Linux: NetBeans Plugin Posted: Dec 11, 2008 5:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: JavaFX 1.0 On Linux: NetBeans Plugin
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

This is a follow up on my Using JavaFX 1.0 On Linux seven days ago.

That blog entry was picked up by:

A commenter on my blog (and several commenters on the above cited blogs) asked about if the JavaFX NetBeans plugin can be made to work on Linux. Sure it can. It's Java.

However, since the plugin is not officially released for Linux, things are a little bit confusing: If you browse for Available Plugins and search for javafx, you will see three plugins:

  • JavaFX Source Debug
  • JavaFX 1.0
  • JavaFX Weather Sample

but they cannot be installed. The error message reads:

No plugin providing the capability javafx.sdk could be found.

These three are leftovers from the JavaFX Preview SDK release. We do not want them. We need to browse to the NetBeans update center to find the ones we want:

http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/javafx/

It contains 23 *.nbm (Netbeans module) files. Download them all into a directory.

In NetBeans plugin manager, go to the Downloaded tab and click on the Add Plugins... button, and add all the downloaded files. You will see 21 plugins showing up in the window. Now *uncheck* the three JavaFX Preview SDK plugins listed above and install the rest 18. The installation should go normally, prompting you to restart Netbeans.

The two *.nbm files that the NetBeans plugin manager did not show contains the Windows and Mac versions of the JavaFX SDK 1.0. We ignore the Windows file and concentrate on the Mac version. We do a manual installation:

  • Unzip the file (It's a Zip formatted file)
  • This generated a few subdirectories, one of them is netbeans
  • The netbeans directory further contains subdirectories config, javafx-sdk1.0 and modules
  • In your NetBeans 6.5 installation directory, create a subdirectory javafx2 (in parallel to the java2, groovy1 and ruby2 subdirectories) and copy the config, javafs-sdk1.0 and modules directories into javafx2.
  • You may need to go into the javafx-sdk1.0/bin subdirectory and make the scripts there executable.

That's it. You now can create JavaFX projects in NetBeans 6.5, edit, compile, debug and preview the project.

Enjoy!

Or wait for the official Linux release, which is only (I heard it somewhere) weeks away.

(Disclaimer: I know very little about NetBeans modules. Although the above procedure appears to work for me, I'm not sure if there is a shorter way to do all this, or if it will have any negative effects on your NetBeans installation. YMMV.)

Read: JavaFX 1.0 On Linux: NetBeans Plugin

Topic: Links for 2008-12-06 [del.icio.us] Previous Topic   Next Topic Topic: The J in Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use