Skip to content

Instantly share code, notes, and snippets.

@JQL
Last active September 10, 2018 08:25
Show Gist options
  • Save JQL/464b0639656502623bd26f804e989c6c to your computer and use it in GitHub Desktop.
Save JQL/464b0639656502623bd26f804e989c6c to your computer and use it in GitHub Desktop.
How to Install Apache NetBeans (incubating) 9.0 on Linux (Ubuntu and Linux Mint 19)
NetBeans is, at the time of writing, in the process of being transfered from Oracle to Apache. Therefore, things ARE GOING TO change and change rapidly. So please check back regularly.
See the video : https://youtu.be/1uU9Toj9zXk
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
a. click on "Binaries incubating-netbeans-java-9.0-bin.zip ( PGP ASC, SHA-1)"
b. click on the recommended Mirror
c. 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:
a. Open ./netbeans/etc/netbeans.conf in a text editor
b. Come down to near the bottom of the file and look for the line: #netbeans_jdkhome="/path/to/jdk"
c. Remove the leading #
d. Enter the path to the JDK8. Examples (change to suit your environment):
i. netbeans_jdkhome="/home/john/netbeans/jdk8"
OR
ii. netbeans_jdkhome="/usr/lib/jvm/java-8-openjdk-amd64")
e. Save the file
g. 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
a. Close NetBeans if it is open
b. Right click on the Menu and click on Configure
c. Click on menu (at the top)
d. Click on "Open the menu editor"
e. In the left pane, click on "Programming"
f. Click on the "New Item" button
g. In the Launcher Properties Dialog enter (note: replace $USER with your Username):
Name : Apache NetBeans (incubating) 9.0
Command : <browse to the netbeans/bin folder and select netbeans> (/bin/sh "/home/$USER/netbeans/bin/netbeans")
Comment : The Smarter Way to Code
Icon : <browse to netbeans/nb folder and select netbeans.png> (/home/$USER/netbeans/nb/netbeans.png)
Leave "Run in Terminal" unchecked
Click on OK
h. Close the Menu Editor
COMMANDS & LINKS:
Apache NetBeans : https://netbeans.apache.org
Plugin Update : http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz
Apache Transition Documentation: https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment