X

Geertjan's Blog

Running NetBeans IDE 9 Development Build on JDK 9 EA Build 162

Geertjan Wielenga
Product Manager

For the adventurous, interesting times ahead since you're able to try out the NetBeans IDE 9 development build on top of JDK 9 EA, in my case, Build 162.

When you configure that in your 'etc/netbeans.conf' file, the first thing you see on start up is this error, which appears to be related to the Darcula plugin that I'm using. Of course, since it's awesome despite this aspect for the moment, I'm using the Darcula plugin, which you can download and install from here, i.e., simply use the latest release of the plugin for 8.2, works fine in 9 development builds, except for this error.

After seeing the above, simply click Cancel, and, so far, despite the above, things are pretty good!

There are two big advantages to running the NetBeans IDE 9 Development Build on top of JDK 9.

The first is that the fonts are automatically a lot better, at least, on Windows and, at the very least, on my system (click to enlarge the below, where you see NetBeans IDE 9 Development Build on JDK 9 on the left versus on JDK 8 Update 121 on the right):

The second advantage is that you automatically have JShell integration (choose Tools | Open Java Platform Shell), as shown below. Excellent enhancement here is that, since the last time I used it, there's now a code fold for the text at the top of the JShell.

Until further notice, this is the environment I'll be using. 

Join the discussion

Comments ( 7 )
  • guest Monday, March 27, 2017

    Except the exceptions, things are pretty good and the fonts look better - really?? Isn't it that Darcula failed to set its font, throwing the exceptions and you're seeing just the basic bold font from Metal LaF?


  • Geertjan Wielenga Monday, March 27, 2017

    That's certainly possible. In that case, we should get the Darcula plugin developer to use the Metal LaF font.


  • guest Monday, March 27, 2017

    There is one more issue in this. In the projects window, Every project's submenu or project tree (packages etc.) are in black color. Darcula couldn't set the color for them and this is almost unusable unless you are using shorcuts for navigation in project.

    Another issue is that all code completion suggestions are black.


  • Geertjan Wielenga Monday, March 27, 2017

    Yup. All true. We'll get in touch with the Darcula/NetBeans developer to see what he thinks about all this! Thanks for the insights and ideas.


  • Michael Kroll Wednesday, March 29, 2017

    Hi,

    to solved this problem I have comitted a little change:

    https://github.com/Revivius/nb-darcula/pull/136

    It solved the problem with the 'sun.swing.SwingLazyValue', it must be change to 'import javax.swing.UIDefaults.ProxyLazyValue'.

    But we run in an other problem with 'This is caused by JDK9 b150 and newer does not allow reflection to module private packages.' https://forums.netbeans.org/topic67362.html

    And in the moment I don't now we can solved it.

    Regards

    Michael


  • Michael Kroll Wednesday, March 29, 2017

    Hi,

    to solved this problem I have comitted a little change on GitHub

    It solved the problem with the 'sun.swing.SwingLazyValue', it must be change to 'import javax.swing.UIDefaults.ProxyLazyValue'.

    But we run in an other problem with 'This is caused by JDK9 b150 and newer does not allow reflection to module private packages.'

    And in the moment I don't now we can solved it.

    Regards

    Michael


  • Geertjan Friday, March 31, 2017

    Hi Michael, thanks for your help and input on this, sending an e-mail to you now and some others.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha