Installing NetBeans 9.0 on Linux Mint & Ubuntu

Do you want to know how to Install Apache NetBeans (incubating) 9.0 on Ubuntu, Linux Mint and most Linux Distros?

This video will show you how to Install Apache NetBeans (incubating) 9.0 and also how to add the Plugins from NetBeans 8.2.

You may also be interested in learning more about NetBeans with these very useful & informative books from Amazon: https://amzn.to/2D8nyOh

**Bonus: Included in the video – Create a Start Menu Link in Linux Mint for Apache NetBeans (incubating) 9.0.**

Advertisement

The steps to install Apache NetBeans (Incubating) 9.0

  1. Update your repositories:
    sudo apt-get update && sudo apt-get upgrade
  2. Check if you have java installed:
    which java

    If java is installed then check the version:
    java -version

    IMPORTANT: If java JDK8 is not installed, install JDK8 (NetBeans installation is much, much easier with JDK8):
    sudo apt-get install openjdk-8-jdk
    (you may need to restart Linux afterwards)

    or Download from:
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
    and unzip to ~/netbeans/jdk8

  3. Download “Apache NetBeans (incubating) 9.0” from
    https://netbeans.apache.org/download/index.html

    1. click on “Binaries incubating-netbeans-java-9.0-bin.zip ( PGP ASC, SHA-1)”
    2. click on the recommended Mirror
    3. Check the Hash (details on the https://netbeans.apache.org/download/index.html page)
  4. Unzip the download by double clicking on it. The Unzip location should be your Home directory as it’ll create a netbeans directory.
  5. Open the NetBeans directory and navigate to the bin folder (~/netbeans/bin)
  6. Double click on netbeans (NOT the exe files).
    If you have a problem with NetBeans not starting:
    1. Edit the file:
      ./netbeans/etc/netbeans.conf
    2. Come down to near the bottom of the file and look for the line: #netbeans_jdkhome="/path/to/jdk"
    3. Remove the leading #
    4. Enter the path to the JDK8. Examples (change to suit your environment):
      netbeans_jdkhome="/home/$USER/netbeans/jdk8"
      OR
      netbeans_jdkhome="/usr/lib/jvm/java-8-openjdk-amd64"
    5. Save the file
    6. Stop and restart Netbeans if necessary.
  7. Wait for the licence agreement and click on “I Accept”
  8. Wait! On first run it’ll want to index the dictionaries and do other “housekeeping” tasks (patience is a virtue, honest 🙂 )
  9. Install the nb-javac by clicking on the button “install nb-javac” button. Accept the defaults in the NetBeans IDE Plugin Installer. Restart the IDE
  10. On Usage Statistics select either “I Agree” or “No, Thank You”. As Apache are currently developing Netbeans, I would recommend you click on “I agree” but, it is YOUR choice.
  11. NetBeans is now up and running

  12. To add NetBeans to the menu in Linux Mint 19

    1. Close NetBeans if it is open
    2. Right click on the Menu and click on “Configure”
    3. Click on “Menu” (at the top)
    4. Click on “Open the menu editor”
    5. In the left pane, click on “Programming”
    6. Click on the “New Item” button
    7. In the Launcher Properties Dialog enter (note: you can replace $USER with your Username):
      • Name :
        Apache NetBeans (incubating) 9.0
      • Command :
        /bin/sh "/home/$USER/netbeans/bin/netbeans"
      • Comment :
        The Smarter Way to Code
      • Icon :
        /home/$USER/netbeans/nb/netbeans.png
      • Leave “Run in Terminal” unchecked
      • Click on “OK”
    8. Close the Menu Editor

    That’s it! You should be up and running…

    Advertisement

    Having installed NetBeans, you may want to add the various plugins which are currently missing from NetBeans 9.0


    Commands & Links:

    NetBeans IDE 8.2 Plugin Centre: 

    http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz

    List of Plugins Gist: https://gist.github.com/JQL/2a3c91ab4996483f7f4ca1ad0ead8dd2

    NetBeans Transition from Oracle: https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition

    You may also be interested in learning more about NetBeans with these very useful & informative books from Amazon: https://amzn.to/2D8nyOh

    Advertisement