Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my Ubuntu 9.10 I have NetBeans 6.8 running. Now when I press the Enter key (to confirm a dialog box, return a line, etc) in some cases it just crashes. The application just quits unexpectedly. Here's what I got when I executed it from command line:

bruce@lee:~$ /usr/local/netbeans-6.8/bin/netbeans
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 416740 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Any clues?

share|improve this question
Start it from a terminal and watchout for error messages. – Bobby Apr 19 '10 at 14:21
If I type 'locate netbeans' on the command line I get loads of matches... where is the program (typically) located? – Action Hank Apr 19 '10 at 14:29
I'm not in front a Linux PC right now, but try typing "netbe" and hit tab in the terminal. Or check where the menu shortcut leads. – Bobby Apr 19 '10 at 14:40
'netbe'<tab> doesn't do anything, but found the shortcut – Action Hank Apr 19 '10 at 14:56
updated question – Action Hank Apr 20 '10 at 10:00

Presumably found the solution: Netbeans was starting on openJDK, not the JDK from Sun. Edited the netbeans.conf file to match Sun's JDK.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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