I installed netbeans using zypper install netbeans. Trying to run it, I get the "loading" splash screen which is proceeded by a small popup which asks me if I want to register my copy and receive some benefits. Once that popup is gone, I'm left with a big beige screen and nothing else. It's almost like netbeans can't be displayed. Running netbeans from the command line does not give me any output or error messages.

I also had this same issue when I was trying to install it using the .sh file found on their website.

I'm running opensuse 11.4 with dwm as my window manager. I'm also using the AMD's fglrx graphics driver (I have also experienced this issue using the default open source driver shipped with opensuse).

EDIT When trying to run sudo netbeans, I get:

/usr/share/netbeans/6.8/bin/../platform11/lib/nbexec: WARNING: environment variable DISPLAY is not set

And no display. This is not same behavior as when I launch as a regular user.

  • The error when running as root just means root doesn't have the $DISPLAY environment variable set. Run a root shell, export DISPLAY=:0, and you should see netbeans startup (with the same display bug if my answer is correct). – Mat Nov 23 '11 at 6:44
  • Your answer is correct, however root's $DISPLAY is already set to :0, which is the same as my normal user. – n0pe Nov 23 '11 at 7:03
  • The environment you get with sudo is not the same as if you run a login shell. You could try with sudo -i. – Mat Nov 23 '11 at 7:05
  • Doing su and echo $DISPLAY gives me :0. Doing sudo -i echo $DISPLAY also gives me :0 – n0pe Nov 23 '11 at 7:08
  • What does sudo -i netbeans do? – Mat Nov 23 '11 at 7:08

There's the same type of problem for awesomewm and probably quite a few other window managers.

The dmw wiki has a section on this: Fixing misbehaving Java applications. The solution proposed is to change the window manager name by installing wmname, and then running:

$ wmname LG3D

If that works, make sure that is called at every X session startup.

The awesomewm wiki has this same suggestion, and other workarounds that are most likely relevant to dwm here: Problems with Java.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.