Download Article
Easy-to-follow steps to install JavaFX on Linux
Download Article

JavaFX is a Java platform for creating and delivering rich Internet applications that can run across a wide variety of connected devices.

Oracle JavaFX 2.0 has been completely re-written and it's installation methods have changed so now you are required to have an integrated development environment (IDE). For example, NetBeans or Eclipse IDE in order to successfully compile and create JavaFX programs.

This tutorial will cover the installation of Oracle JavaFX 2.0 on Ubuntu Linux using the NetBeans IDE.

  1. How.com.vn English: Step 1 Let's start by gathering all your resources.
    You will need to obtain and install the following for a working implementation of JavaFX 2.0 on your Ubuntu Linux system.
  2. How.com.vn English: Step 2 If you don't...
    If you don't have Oracle Java installed on your system please see the following article, How to install Oracle Java on Ubuntu Linux. Make sure you have Oracle Java installed on your Ubuntu Linux system. For this project it is imperative that you have Oracle Java and not OpenJDK installed on your system.
    Advertisement
  3. How.com.vn English: Step 3 You will need to obtain a copy of the NetBeans IDE with JavaFX support and install it to your system.
    It is best that you obtain the latest copy to ensure it has full support for JavaFX. Make sure you obtain the correct NetBeans IDE for your Ubuntu Linux system architecture, either 32-bit or 64-bit. My suggestion is that you download the NetBeans IDE and copy it to /usr/local and install it by using this method.
  4. How.com.vn English: Step 4 How to install NetBeans IDE on your Ubuntu Linux system
  5. How.com.vn English: Step 5 Download NetBeans IDE...
    Download NetBeans IDE
    • Select and download the NetBeans IDE that has all functionality it is usually the one that is 210MB or more to your Ubuntu Linux system
    • Type/Copy/Paste: cd /home/"your_user_directory"/Downloads
    • Type/Copy/Paste: sudo -s cp -r netbeans-7.1.2-ml-linux.sh /usr/local
    • Type/Copy/Paste: cd /usr/local/
    • Type/Copy/Paste: sudo -s chmod +x netbeans-7.1.2-ml-linux.sh
      • This will make the Netbeans IDE executable for all users on the system
    • Type/Copy/Paste: ./netbeans-7.1.2-ml-linux.sh
      • Execute in order to install Netbeans IDE to your system
  6. How.com.vn English: Step 6 Download JavaFX Beta...
    Download JavaFX Beta for Linux, at this time, in order to obtain the JavaFX Beta SDK for Linux, you may be required to create and register an account with Oracle. If you don't you might not be able to obtain the JavaFX Beta 2.0 SDK.
  7. How.com.vn English: Step 7 Select the correct JavaFX SDK for your operating system architecture ( 32-bit or 64-bit )
    • javafx_sdk-2_2_0-beta-b13-linux-i586-13_jun_2012.zip (32-bit)
    • javafx_sdk-2_2_0-beta-b13-linux-x64-13_jun_2012.zip (64-bit)
  8. How.com.vn English: Step 8 32-bit instructions
    • Type/Copy/Paste: cd /home/"your_user_directory"/Downloads
    • Type/Copy/Paste: sudo -s chmod +x javafx_sdk-2_2_0-beta-b13-linux-i586-13_jun_2012.zip
    • Type/Copy/Paste: sudo -s cp -r javafx_sdk-2_2_0-beta-b13-linux-i586-13_jun_2012.zip /usr/local
  9. How.com.vn English: Step 9 64-bit instructions
    • Type/Copy/Paste: cd /home/"your_user_directory"/Downloads
    • Type/Copy/Paste: sudo -s chmod +x javafx_sdk-2_2_0-beta-b13-linux-x64-13_jun_2012.zip
    • Type/Copy/Paste: sudo -s cp -r javafx_sdk-2_2_0-beta-b13-linux-x64-13_jun_2012.zip /usr/local
  10. How.com.vn English: Step 10 Now change into /usr/local and unzip the JavaFX 2.0 SDK in the /usr/local directory on your system.
  11. How.com.vn English: Step 11 32-bit instructions
    • Type/Copy/Paste: cd /usr/local
    • Type/Copy/Paste: unzip javafx_sdk-2_2_0-beta-b13-linux-i586-13_jun_2012.zip
  12. How.com.vn English: Step 12 64-bit instructions
    • Type/Copy/Paste: cd /usr/local
    • Type/Copy/Paste: unzip javafx_sdk-2_2_0-beta-b13-linux-x64-13_jun_2012.zip
  13. How.com.vn English: Step 13 Setting up JavaFX to work with NetBeans IDE
    • Start up NetBeans
      • NetBeans will require you to create a new Java platform that has JavaFX enabled in it.
    • Select File->New Project->JavaFX->JavaFX Application
    • Click Next
    • Click on Manage Platforms->Add Platform
      • It will ask you to point to your installation of Oracle Java which should be /usr/local/java/jdk1.7.0_05 or the directory/location where you have your Java JDK installed.
    • Click Next and Finish, you will notice as soon as you create a new Java platform a small tab named JavaFX will appear.
    • Click on the JavaFX tab
    • Click on enable JavaFX
      • Then fill in the location where you unzipped the JavaFX SDK, which should be /usr/local/javafx-sdk2.2.0-beta
  14. How.com.vn English: Step 14 Once you fill...
    Once you fill in the location of the JavaFX platform location the NetBeans IDE will automatically fill in the rest of the locations for the remaining JavaFX libraries
    • Click Close
    • Make sure you go back to the screen which says New JavaFX application and go to where it says JavaFX platforms and select the Java platform you created with JavaFX enabled. It should say JDK1.7.0 and not JDK1.7.0(Default).
  15. How.com.vn English: Step 15 Congratulations, once that...
    Congratulations, once that task is complete your NetBeans IDE is completely configured for JavaFX development on Ubuntu Linux.
  16. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Hi for guys who have ubuntu 13.04 download javafx_scenebuilder-1_1-beta-b29-linux-i586-11_jul_2013.deb. Right click and open with ubuntu software center after you click the install button en enjoy java life. thank you
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 16 people, some anonymous, worked to edit and improve it over time. This article has been viewed 171,889 times.
      How helpful is this?
      Co-authors: 16
      Updated: May 29, 2023
      Views: 171,889
      Categories: Ubuntu
      Thanks to all authors for creating a page that has been read 171,889 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement