Saturday, June 8, 2013

JavafX2 setup using Eclipse/Netbeans

Setting up an Eclipse Project for JavaFx2 is easy. Although Netbeans is fully equipped with everything you'll need for creating and running a Javafx2 App, I still use Eclipse. Reason, I am more used to Eclipse than Netbeans. But there is always a reason to try.

The first step would be to download and install the JDK on your system. Make sure you have setup the PATH and JAVA_HOME env variables. 

I am currently using JDK7 u21 on my system as shown below. JavaFx2 Comes packaged with this version. if you are using jdk 1.6 then you'll have to download JavafX2 separately and install it. I recommend upgrading your JDK.

Second, install Eclipse. This should be easy again. All you need to do is download a zip file and unzip it in your local drive. 

Third, download the JavaFX Scene Builder. Scene Builder is an amazing tool provided for building JavaFX2 layouts without any coding. It is as easy as simple drag and drop.  

Fourth, install e(fx)clipse in Eclipse. You can read about the same here. Downloading and installing is easy. Just follow the instructions mentioned in the site and you'll be good.

You are ready to start now. If you actually want yourself to save this trouble just download Netbeans and start coding. All you'll need is a scene builder and that's it. so go ahead, take your pick, Netbeans or eclipse all up to you.

We are all set now. Eclipse and Netbeans doesn't really matter.
  

No comments:

Post a Comment