When Jigsaw/m2 appeared on the OpenJDK, I tried it with my usual guinea pig, NetBeans. Launching was fine, however using Jigsaw as the platform for a project was not due to the new image (JEP 220). In due time it will be supported but currently it isn't. So I set out to see if I could not add some support myself.
Since I first wrote this post the NetBeans team started their work for supporting JDK 9, check the NetBeans JDK 9 support wiki page for more.
For now the following seem to work for me:
- define a JDK 9 platform
- class indexation and autocompletion
- run
To try with your own NetBeans build:
To run NetBeans with JDK 9 yet develop for it, add the following lines to <nb working copy>/nbbuild/user.build.properties :
nbjdk.home=C:\\Program Files\\Java\\jdk1.7.0_76To launch an instance of NetBeans running JDK 9 via NetBeans, in <nb working copy>/nbbuild/build.xml, for the tryme target, change the value of the <arg file="${nbjdk.home}"/> of the exec task to the path to JDK9
# if nbjdk.home is pointing to a JDK8 then uncomment:
#permit.jdk8.builds=true
Explore!
No comments:
Post a Comment