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

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. 

Comments:

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?

Posted by guest on March 27, 2017 at 02:27 AM PDT #

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

Posted by Geertjan Wielenga on March 27, 2017 at 03:36 AM PDT #

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.

Posted by guest on March 27, 2017 at 04:07 AM PDT #

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.

Posted by Geertjan Wielenga on March 27, 2017 at 04:44 AM PDT #

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

Posted by Michael Kroll on March 28, 2017 at 09:29 PM PDT #

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

Posted by Michael Kroll on March 28, 2017 at 10:05 PM PDT #

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

Posted by Geertjan on March 31, 2017 at 12:24 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java and JavaScript technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily, mainly on topics connected to Oracle JET and NetBeans IDE.

Search


Archives
« April 2017
SunMonTueWedThuFriSat
      
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
23
24
25
26
27
28
29
30
      
Today