user2018756
user2018756

Reputation: 337

Netbeans not opening New Project Dialog

After installation, Netbeans open fine, Open Exiting Project, Or Existing File works. However Netbeans doesn't show New Project or New File Dialog, whether selecting it from menu or from the toolbar. Netbeans version is 8.2, Ubuntu version is 16.04. It is a fresh install, and Oracle jdk-9 installed.

update-alternatives point to oracle-java.

Uninstalled and Reinstalled Netbeans, without any success.

Any suggestions.

Upvotes: 0

Views: 6416

Answers (6)

Eli
Eli

Reputation: 444

For me, this problem started after a Mac OS upgrade to 10.15.4. None of the solutions worked. I uninstalled NetBeans and reinstalled it, and it worked.

Upvotes: 0

Mohan Uppaluri
Mohan Uppaluri

Reputation: 21

Netbeans 8.2 seems to have some problem with JDK11 as well. Do not know whether it has been fixed, since even after dowloading JDK11 the problem persists.

Without deleting the newer ones you can set the path to the previous versions i.e. JDK8 and it works.

Open the following file

/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf

Look for #netbeans_jdkhome=

set the path to the older version of java:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home"

and restart the netbeans.

Upvotes: 2

user10073385
user10073385

Reputation:

What worked for me was:

  1. In Program Files, go to Java

  2. For me, my computer has already downloaded the latest JDK. Check to see if there are JDKs in your folder

  3. Delete the duplicate/latest JDK's

Upvotes: 0

Geoff Shaw
Geoff Shaw

Reputation: 1

I closed netbeans 8.2, commented out the reference to the JDK home in the netbeans.conf file, in the root of the netbeans 8.2 folder

# netbeans_jdkhome="C:\Program Files\Java\jdk-9.0.4"

When I restarted the navigation pane that were previously missing appeared as they should.

Upvotes: 0

blueteck
blueteck

Reputation: 33

Had the same problem with JDK 9, switched back to JDK 8

Change netbeans.conf file and adjust JDK.

Upvotes: 2

user2018756
user2018756

Reputation: 337

Funny thing but i changed the jvm in update-alternative to open-jdk jvm and it starts working.

Upvotes: 0

Related Questions