If you’re going to be developing applications based on Java and you need a great development platform to manage your codes, NetBeans might be a great please to start…
This brief tutorial is going to show students and new users how to easily install NetBeans IDE on Ubuntu 16.04 / 17.10 / 18.04 desktop… This post can also be applied to previous and future releases of Ubuntu.
For those who don’t know about NetBeans, it’s an open source code editor based on Java that enables anyone to develop applications for desktop, mobile, web in Java, PHP, C/C++, XML, HTML, JavaScript and many other platforms.
The layout is great, the features are many and it should allow developers to create great applications with ease.
For more about NetBeans, please check this link.
Since NetBeans is based on Java and requires Java in order to function, you must first install Java JDK 8 on Ubuntu…. NetBeans doesn’t fully support JDK 9… so you must install version 8 instead… To install Oracle JAVA JDK 8 on Ubuntu, follow the steps below…
Step 1: Install Oracle Java JDK 8
The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third party PPA… To add that PPA, run the commands below
sudo add-apt-repository ppa:webupd8team/java
After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue
Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 9 installer…. the installer should install the latest Java JDK 9 on your Ubuntu machines.
sudo apt update sudo apt install oracle-java8-installer
When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue..
Set Oracle JDK8 as default, to do that, install the oracle-java8-set-default package. This will automatically set the JAVA env variable.
sudo apt install oracle-java8-set-default
The command above will automatically set Java 9 as the default… and that should complete your installation, you can check you java version by running following command.
javac -version
Step 2: Downloading NetBeans
After installing Java JDK to your system, run the commands below to download NetBeans 8.2…
cd /tmp && wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
Wait until the complete package is downloaded to your machine… it should download to the /tmp directory…
Step 3: Install NetBeans
After downloading the installer package, while still in the /tmp directory, run the commands below to install.
chmod +x netbeans-8.2-linux.sh sudo ./netbeans-8.2-linux.sh
After running the commands above, run the commands below to begin the installation.
You should then see NetBeans installation wizard started. The default choices should be just fine. You don’t have to customize too much. However, if you know what you’re doing, you can customize all you want.
Follow the wizard until you’re done.
Select the default installation directory to install NetBeans
Then NetBeans installation should continue. If the installer can’t find where Java JDK is installed, you will have to browse to find it. The default location on Ubuntu is stored at /usr/lib/jvm/java-8-oracle
Continue and click Install to finish the installation.
After installing, launch the application and begin building great applications.
Enjoy!
Summary:
This post shows you how to install NetBeans on Ubuntu systems. NetBeans IDE is a great application that allows to to build great applications.
You must have Java installed in order to have NetBeans running. The post shows you how to also install Open Java JDK/JRE
You may also like the post below:
ubuntu 18.04 with netbeans 8.2
sudo ./netbeans-8.2-php-linux-x86.sh puts out following message:
Configuring the installer…
Searching for JVM on the system…
Preparing bundled JVM …
./netbeans-8.2-php-linux-x86.sh: 1: eval: /tmp/.nbi-7055806.tmp/jre-8u101-linux-x86.bin: not found
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.
Excellent contribution
thank u!
Thank you so much..!!
After instaling Netbeans8.2 , and all the packages ,I am not able to open this IDE, Kindly Guide me how to launch Netbeans.
Woow! Thanks a lot
This is very helpful!!! thanks
Thanks man… Really appreciated 🙂
how to rerun apps in terminal ??
Great.. Clean and precise commands….
thanks u this was very helpfull 😉
“The command above will automatically set Java 9 as the default…”
Did you mean “…Java 9…”?
I am not sure if I get this right, but I think I read somewhere that Netbeans 8.2 is not compatible with JDK 9.
awesome work mate really helpful and it really worked. thanks alot
After instaling Netbeans8.2 how do you launch the ide?
unfortunately didn’t work for me.
can you please guide me to uninstall the netbeans from ubuntu 18.04
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…
No protocol specified
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread “main”
Thankyou!! This worked…
Can you please make a site how to insatll any software in ubuntu…..Please make soon
thank you so much
Thank you so much.
Before , I have a problem to start Netbeans.
With this tutorial everything is Fine.
net et précis.
Merci.. très bon ptit tuto
Thank you so much. It worked for me perfectly.
Hi, I’am from mexico!!, thank you, excellent tutorial.
There is Some Problem with the steps. I Tried many times but shows error.