Alejandro Mayorga
Alejandro Mayorga

Reputation: 123

Netbeans can't open project or anything

I have this problem: Netbeans runs and I can create a new project, but if I click on an open project or open a file the programs exit and close. Also when I tried to add the .jar driver to create a connection it does the same thing. So I can't add or open anything.

Things to know: I bought a new SSD for my laptop, I did a clean installation. It's a Windows 10 creator update 1703 compilation (the last build). I re-downloaded Netbeans, fully uninstalled it, and then installed it again and I can't solve the problem.

Upvotes: 8

Views: 109617

Answers (11)

CAMD_3441
CAMD_3441

Reputation: 3154

Go to Help -> About and delete both the contents of the User Directory and Cache Directory

Here's a screenshot of that:

enter image description here

Afterwards restart/start up netbeans.

Upvotes: 1

Arun Joseph
Arun Joseph

Reputation: 3144

Please follow the below mentioned steps to fix this issue:

  1. Close Netbeans if opened
  2. Download Java 8 jdk from https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html
  3. Install it
  4. Delete the folder /java/jdk-13/
  5. Open Netbeans again
  6. Select Yes in the prompt ( To use the newly installed jdk )
  7. Viola you can create new projects and files

Upvotes: 0

Brayoni
Brayoni

Reputation: 756

I solved the problem on Big Sur Mac OS by editing netbeans.conf, note the "Contents/Home".

netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home"

Upvotes: 5

Binson Selvin
Binson Selvin

Reputation: 49

I am using netBeans8.2. Just click on Open Project and select old project then all projects load automatically:

Demonstration

Upvotes: -1

Ace Jasper Noora
Ace Jasper Noora

Reputation: 1

You should consider the path of the folder. Mine is just on desktop, then I moved it inside another folder. I got the same issue, then I put it back on its original place and everything works fine again.

Upvotes: 0

Saad
Saad

Reputation: 1

make sure the path of netbeans.exe or netbeans64.exe doesn't have numbers or non-english characters.

Upvotes: 0

Uddhav P. Gautam
Uddhav P. Gautam

Reputation: 7626

If you had Netbeans installation over Java 9 then Please note Netbeans does not work with Java 9. Proof: https://forums.netbeans.org/topic68000.html

This solution is for Windows, but the same logic is applied in Linux too.

Solution1: You have to edit netbeans.conf file to your java installation path. You can find netbeans.conf inside etc folder of Netbeans installation folder. (By default is the program files folder)

Make your netbeans.conf like below. Eg, netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0_144"

Solution2: -- If you don't want to edit your netbeans.conf.

Install java 8 (32 bit or 64 bit whatever). Copy jdk1.8.0_144 and jre1.8.0_144 folders from program files (x86)/java / to program files/java/. Inside program files/java folder, rename jdk1.8.0_144 to jdk-9 and jre1.8.0_144 to jre-9.

You are done.

Upvotes: 26

Shanmukh Gudivada
Shanmukh Gudivada

Reputation: 11

You can replace it by yourself by just adding the following line in .conf file in the netbeans installation directory folder:

netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_191

Upvotes: 1

Pepito Gonzales
Pepito Gonzales

Reputation: 61

Instead of the reinstallation you need to clean up from files the "C:\Users\Username\AppData\Roaming\NetBeans\8.1" folder.

Upvotes: 5

Fairoz
Fairoz

Reputation: 1666

Right it is due to the issue https://bugs.openjdk.java.net/browse/JDK-8179014 which is already investigated. This issue only observed on Windows 10 x64, build 1703. Deleting the GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} will resolve the issue

Upvotes: 2

TomS
TomS

Reputation: 46

The problem is related to this bug in Java JRE 1.8.0_131-b11. https://bugs.openjdk.java.net/browse/JDK-8179014

It only happens when Windows 'God Mode' is active (read the comments).

Uninstall JRE 1.8.0_131-b11 and delete the 'God Mode Folder' on the desktop and the problem is gone. I was able to reinstall Netbeans and it is running fine.

Upvotes: 3

Related Questions