Skip to main content

Integrating JavaFX into NetBeans on Slackware

After making sure that the samples are working great on our system based on my previous post, we can continue by integrating JavaFX into NetBeans, a nice and cool IDE suitable to work with many programming languages, mainly Java.

The latest version of NetBeans currently is 7.1.1 as this post is composed. You can download it directly from their download page and you can choose which version of NetBeans that you want to pick. I usually pick the complete version. Although it's quite big in terms of size (210 MB), it's really a good IDE and it's really worthed.

If you haven't got Java Development Kit and NetBeans, i would suggest you to download the bundled package available at Oracle's website directly. That saves your time. This article is assuming that you have NetBeans installed and you wanted to start developing JavaFX applications. Remember that JavaFX requires Java JDK 1.6.0 update 26 or later, or Java 7. I used Java 7 Update 3 (1.7.0_03) in my system.

First, fired up NetBeans and click on the "Try a Sample Project" on the first dialog screen. Pick Samples > JavaFX and pick any random samples (i used FXML-LoginDemo). You will notice that NetBeans complained that there's no JavaFX support

We actually have JavaFX installed correctly, but NetBeans didn't notice changes that we have made previously. So the solution is by creating a new "profile" that has JavaFX installed on our system.

First, open up a new terminal and move the JavaFX directory (javafx-sdk2.1.0-beta) to a directory /usr/local/netbeans-7.1/javafx/ (Change this path according to the path you have chosen to install NetBeans), so that it's now located under /usr/local/netbeans-7.1/javafx/javafx-sdk2.1.0-beta/ on my system.

Next, we go back to the sample dialog and click on Manage Platform. Add a new platform and locate where you installed your JDK (in my system, i placed it under /usr/java/jdk1.7.0_03). You will see a new platform called JDK 1.7 installed on top of the default platform and it has 4 tabs instead of 3 as in the default and the new tab is of course, JavaFX.

Click on JavaFX tab and tick to enable JavaFX. Next, browse to the place where you placed the JavaFX directory above so it looks like this

Once it's done, you can go back to the initial dialog and you will notice that the warning is now gone
You can click on the Finish button to complete the setup and enjoy the JavaFX sample. You can logged in using "demo" as both the username and password.
Basically this tells us that NetBeans is now ready to be used to produce JavaFX-based applications. It's now your turn to produce those amazing products.

Popular posts from this blog

Running Rsync Via Proxy

One way to get the latest Slackware updates is by running rsync to syncronize your local repository and the main repository that hold the Slackware packages. Eric Hameleers has provided a great script called and how i modified this tool has been discussed on my previous post. In general, it works, except for one problem, when your computer is connecting to the Internet through a proxy.

My workstation at my office is connected to the Internet through a proxy, so i can't use normal rsync to work normally. I browsed the web and i found this site which tells us about how we should modify our squid configuration to allow rsync connection from any computer from our local networks. I asked my sysadmin to try this script. He agreed and he updated the squid configuration on the proxy.

Next, i need to update my environment variable RSYNC_PROXY to the host of the proxy and also the port. Let's say you are running a proxy on and port 8080, then you need to run …

NVidia Legacy Unix Driver Update

NVidia has released an updated legacy drivers to support X.Org 1.19 with ABI 23. It has been mentioned in the UNIX drivers, but you can directly find the drivers from the links below:
NVidia 304.134 (x86x86_64)NVidia 340.101 (x86, x86_64) I have tested the 304.134 driver and it's working great here. I can finally remove x from my /etc/slackpkg/blacklist file since it's a showstopper for me.
Aside from legacy driver, NVidia has also released their latest driver 375.26 (x86, x86_64), which brings support for newer cards and also many new features (including X.Org 1.19 with ABI 23 support). 

Security Update: firefox, irssi, pidgin

Three security updates were released for today:
firefox: Upgraded to 45.4.0esr for 14.1 and 14.2 and 49.0 for currentirssi: Upgraded to 0.8.20pidgin: Upgraded to 2.10.11, 2.10.12, and 2.11.0 for all stable Slackware releases depending on their support Some minor update in current:
mkinitrd: Add dmsetup supportemacs: Upgraded to 25.1qt: Fix multilib issue network-scripts: Fix minor issue