NetBeans 6.8 crash randomly when pressed Enter?

2

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?

HTBR

Posted 2010-04-19T14:13:44.380

Reputation: 193

Start it from a terminal and watchout for error messages. – Bobby – 2010-04-19T14:21:36.843

If I type 'locate netbeans' on the command line I get loads of matches... where is the program (typically) located? – HTBR – 2010-04-19T14:29:33.427

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 – 2010-04-19T14:40:32.280

'netbe'<tab> doesn't do anything, but found the shortcut – HTBR – 2010-04-19T14:56:28.053

updated question – HTBR – 2010-04-20T10:00:43.097

Answers

0

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

HTBR

Posted 2010-04-19T14:13:44.380

Reputation: 193