Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

I can't start a new project on Netbeans

Writer Matthew Martinez

The issue:

When I open the "add new project" dialog (screenshot below), I can't create a new project. The loading message (hourglass icon) stays on forever. Except for "cancel", the other buttons are disabled.

It was working fine a few days ago, I haven't changed any setting prior to the issue appearing. I ran the internal update feature, but the issue persists.

enter image description here

The info:

My OS version: Ubuntu 12.04.2 LTS 64 bits

Netbeans version:

Help -> about

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.6.0_27; OpenJDK 64-Bit Server VM 20.0-b12
System: Linux version 3.2.0-49-generic running on amd64; UTF-8; pt_BR (nb)
User directory: /home/user/.netbeans/7.2.1
Cache directory: /home/user/.cache/netbeans/7.2.1

What I tried:

  • Changing the Look and Feel with the --laf command-line option. The look-and-feel does change, but the issue persists.
  • Using the internal update command, a plugin got updated but the issue persists.
  • Downloading and installing the latest version (7.31), it imported the settings from the previous version and the issue persists.
  • Removing the settings folder ~/.netbeans/7.3.1, restarting netbeans, choosing not to import settings and rather have a new clean install
1

8 Answers

Just posted the same question here ... the solution for me was to downgrade OpenJDK from 6b27 to 6b24 (look at the link for details).

My NetBeans was looking excactly like in your sreenshot and also had some other strange problems.

I would suggest you do java -version if this shows that you have 6b27 installed and cat /var/log/dpkg.log | grep openjdk shows that you recently received the OpenJDK update you can try to fix the problem reverting to 6b24 using this command:

apt-get install openjdk-6-jre=6b24-1.11.1-4ubuntu2 openjdk-6-jre-headless=6b24-1.11.1-4ubuntu2 icedtea-6-jre-cacao=6b24-1.11.1-4ubuntu2

****edit****

As I discovered some other problems (SSH connection wouldn't establish within NetBeans) I finally took the step to upgrade to Oracle JDK7. To start NetBeans with another JDK you have got to edit ./netbeans-7.X/etc/netbeans.conf and change the line netbeans_jdkhome="/usr/lib/jvm/java-7-oracle/jre" (I guess this gets generated in the NetBeans installation process). Otherwise it will still use your old JDK no matter what java -version says.

11

It's a bug caused by the JDK version used:

This problem is JDK bug with focus (never ending loop when requesting focus). Issue filed against JDK is . (IcedTea and in future OpenJDK will be distributed as default JDK for Linux distribution so it should be supported.)

The bug seems to affect both Oracle JDK and OpenJDK. Update your JDK in order to fix it. (Don't forget to chante the netbeans_jdkhome variable in the ./netbeans-7.X/etc/netbeans.conf file!)

Try changing your Netbeans' Swing Look and Feel to Nimbus.

7

I had the same issue last night one Ubuntu 13.04

I have openjdk 6 installed and the install was successful but netbeans hung when I tried to create a new project.

Today I managed to solve it after screaming at my computer and scaring my girlfriend :)

Pretty sure this solved it.

Go to and you'll see that you need to chmod the installer:

chmod +x installer-file-name

before you install...

sh installer-file-name

Once I did this I got an executable netbeans on my desktop (for some reason not listed in applications).

One thing to note about the installer, for me it said it couldn't get access to some JUNIT packages, i selected 'quit these modules' or something similar, and the rest of the installation worked fine.

I hope this solves your issue too!

2

I've been having this problem for a couple of days and it's been totally winding me up.

Just resolved it however by changing my version of Java from OpenJDK to Oracle

These might help you -

2

I solved it by upgrading to open-jdk 7.

I had run in to the same problem and a few others trying to get Netbeans to work on 12.04LTS, this is how I managed to have a full working copy.

I (please don't shot me) used a windows device to download the full Netbeans package from the Netbeans website.

I then transferred the .sh file to my desktop, then I needed to change the permissions to allow the file to be executed, with;

sudo chmod +x netbeans-7.4-linux.sh

then I simply installed the file with;

./netbeans-7.4-linux.sh

Netbeans does not show up in applications but there is a launcher on the desktop.

Hope this is of some help to someone :)

For me changing

netbeans_jdkhome="/usr/lib/jvm/java-6-openjdk-amd64"

to

netbeans_jdkhome="/usr/lib/jvm/java-7-openjdk-amd64"

in the netbeans.conf file worked. :) :)

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy