NetBeans 6.5 and Java 6u12 - A No-No!

Posted on March 15th, 2009 by Reiner.
Categories: NetBeans, J2ME, English, Computers.

I recently stumbled upon a problem within a NetBeans mobile project: The editor for the items within an application descriptor would no longer open. Instead a red light on NetBeans frame (all the way down and to the right) would indicate a NullPointer Exception :-(

It appears that the problem is related to running NetBeans 6.5 with Java 6 Update 12.

It appears that other areas and plug-ins might suffer from similar issues as at Do not use JDK 6u12. Use some previous JDK version. We are working on this and NetBeans throws NullPointerException when adding a server.

Update: This bug has now been fixed. Get NetBeans 6.5.1 now.

Work-Around

I don’t know who is the culprit, so just use Java 6 Update 11 (6u11) instead of 6u12:

Download and install Java 6u11 from Sun’s archives or directly from Archive: Download Java Platform Standard Edition (Java SE) 6 Update 11.

Change your NetBeans configuration (e.g. ) to use 6u11 instead of 6u12, e.g.:

# Default location of JDK, can be overridden by using –jdkhome <dir>:
netbeans_jdkhome=”C:Program FilesJavajdk1.6.0_11″

5 comments.

Benjamin

Comment on March 15th, 2009.

Thanks for the TrackBack! :)
Could you please correct your link to binarycoded.com? It seems that there’s a second “http:/”-tag in your code.

Reiner

Comment on March 15th, 2009.

Binarycoded.com: Thank you Benjamin! Mea culpa :-( Done :-) Reiner

Benjamin

Comment on March 16th, 2009.

Hi Reiner!
There’s a new update available for NetBeans 6.5. No more NullPointerExceptions! ;)
Benjamin

kayackmem

Comment on March 20th, 2009.

Достойный материал

tarTalpreft

Comment on March 21st, 2009.

Чёрт возьми! Круто!Вы Сами ответили.Беру в цитник! Смысл жизни и всё остальное. Решено.Без шуток.

Leave a comment

Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.