9

A lot has been changed since the release of Netbeans 9.0. Now Netbeans is taken by Apache Foundation. Also, APT still has v8.1 in Bionic Beaver (18.04). So, how do I install latest version (>9.0)?

11

There are basically 3 ways to install Apache Netbeans incubating as described below:

  • Installing using ubuntu-make:

    Apache Netbeans (incubating) is now available via ubuntu-make. As they say, latest version, You can now install Netbeans 11.0 using ubuntu-make. For that, run:

    sudo add-apt-repository ppa:lyzardking/ubuntu-make
    sudo apt-get install ubuntu-make
    umake ide netbeans
    
  • Installing from Binaries:

  • Building from Source:

    Note: According to Apache NetBeans' release notes (which can be found on Releases / Apache NetBeans under corresponding release) NetBeans 9.0 is compatible with JDK 8, 9 and 10, NetBeans 10.0 with JDK 8, 9, 10 and 11 and NetBeans 11.0 with JDK 8, 9, 10, 11 and 12. Building NetBeans with an incompatible JDK might cause build errors. Moreover JDK 9 and 10 were non-LTS version of Java which seems to be obsolete as of now and are no longer available in Ubuntu's official repository. The installation process of both is described below.

    1. Download the source zip for:

    2. Install either Oracle JDK or OpenJDK.

      • For Oracle JDK8: Download JDK8 from here and run these commands:

        sudo su
        mkdir /opt/jdk
        tar -zxf jdk-8u181-linux-x64.tar.gz -C /opt/jdk
        update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100
        update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100
        
      • For OpenJDK8, run

        sudo apt install openjdk-8-jdk
        sudo apt install openjdk-8-jre
        
      • For OpenJDK11, run

        sudo apt install openjdk-11-jdk
        sudo apt install openjdk-11-jre
        
    3. Install Apache ANT: For installing Apache Ant, run

      sudo apt install ant
      
    4. Once you’re all set just extract the downloaded source, enter the incubator-netbeans directory and type ant to build the Apache NetBeans IDE.

    5. Once built, the IDE bits are placed in the ./nbbuild/netbeans directory. You can run the IDE from within the incubator-netbeans directory by typing ./nbbuild/netbeans/bin/netbeans or use ant tryme to run the Apache NetBeans IDE.

5

Apache NetBeans (incubating) snap package can be installed from Ubuntu Software Center directly. The latest version is 11.0.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.