How to install NetBeans 9 for JDK 9 development
NetBeans 8.2 IDE is not compatible with JDK 9. The version of NetBeans 8.2 is not designed to work with JDK 9 and does not support development on the ninth version of Java.
To successfully use JDK 9, you need to download the NetBeans 9.0 development build from Apache Incubator.
How to install NetBeans 9 in Windows
Although the https://builds.apache.org/job/incubator-netbeans-linux/ page says that there is a version for Linux and contains a link to the version for Windows, you need to download the archive from this page, i.e. you need to download a version for Linux even if you are going to run NetBeans 9 in Windows.
The download archive is called something like "NetBeans-dev-incubator-netbeans-linux-264-on-20171209-basic.zip".
NetBeans, like any Java application, is a portable program. To start, you need to unzip the downloaded archive. Then go to the netbeans\etc\ folder and open the netbeans.conf file with a text editor. In this file, find the line
#netbeans_jdkhome = "/path/to/jdk"
Uncomment this line (remove the # character) and specify the full path to jdk, like this:
Save and close this file.
Go to the netbeans\bin\ folder, where you will see the files:
On 64-bit systems, run netbeans64.exe:
The simplest program that shows the current version of the Java runtime:
How to install NetBeans 9 in Linux
Go to https://builds.apache.org/job/incubator-netbeans-linux/ and download the archive, which is called something like this: "NetBeans-dev-incubator-netbeans-linux-264-on-20171209-basic.zip".
Unzip the downloaded archive. Then go to the netbeans/etc/ directory and open the netbeans.conf file with a text editor. In this file, find the line
Uncomment this line (remove the # character) and specify the full path to jdk. If you used this manual to install Java 9 (JDK 9, JRE 9) on Linux, then the line should look like this:
Save and close this file.
Go to the netbeans/bin/ folder, where you will see the netbeans file.
To launch NetBeans, click on it twice.
Select Start in Terminal or Start.
At present, NetBeans 9 is in the active development stage.
NetBeans 9 can work with both JDK 9 and JDK 8.
You can run NetBeans on JDK 8 and then register JDK 9 as a Java platform, after which you can make use of new JDK 9 features such as Jigsaw. Even better, you can run NetBeans on JDK 9, which means that you’ll be able to use JShell directly inside NetBeans.
Last Updated on
- How to install Java 9 (JDK 9, JRE 9) on Linux (98.1%)
- How to Install Total Commander Counterpart in Kali Linux (54.9%)
- How to install Intercepter-NG in Linux (54.9%)
- How in Windows view the contents of a Linux disk and copy files from it (54.9%)
- How to set up OpenVPN server and clients (54.9%)
- 5 free and simple steps to secure WordPress web sites (RANDOM - 50%)