JigsawSupport

(Difference between revisions)
m
m
Line 13: Line 13:
==Getting Started==
==Getting Started==
-
# The NetBeans Jigsaw builds runs on top of Java SE 8, you can download the latest update of [http://www.oracle.com/technetwork/java/javase/downloads/index.html Java SE 8 here]. JDK 7 and older is not supported by NetBeans after NetBeans 8.1 release.
+
# The NetBeans Jigsaw build runs on top of Java SE 8, you can download the latest update of [http://www.oracle.com/technetwork/java/javase/downloads/index.html Java SE 8 here]. JDK 7 and older is not supported by NetBeans after NetBeans 8.1 release.
# Download the latest JDK 9 Early Access with Project Jigsaw build from https://jdk9.java.net/jigsaw page.  
# Download the latest JDK 9 Early Access with Project Jigsaw build from https://jdk9.java.net/jigsaw page.  
# Download NB Jigsaw dev build from http://deadlock.netbeans.org/job/NB-for-JDK9_jigsaw/ws/dist/zip/ or build it from sources.
# Download NB Jigsaw dev build from http://deadlock.netbeans.org/job/NB-for-JDK9_jigsaw/ws/dist/zip/ or build it from sources.

Revision as of 14:02, 14 December 2015

Contents

JDK9 Jigsaw Support

NetBeans IDE previews an early experimental support for Jigsaw project which will be a part of JDK9. NetBeans team provides this as a preview of development work done in NetBeans IDE with a goal to have a good, usable support of JDK9 with modules (Jigsaw project) at a time of release of JDK9. Features are not complete and WILL break in the future. Jigsaw is also a moving target as it is not Feature complete yet.

The work started for Java SE support and projects (NB Ant project) other areas like Java EE or Maven are not being worked on for Jigsaw at this time. Later when Java SE support will be in desired state NetBeans developers of all other modules should start to use this for their work on making other NB modules to support Jigsaw and JDK9.

Sources and builds are available on AS IS basis without any warranty. No bugs should be filled for Jigsaw support at this time. We are at the beginning of design period for Jigsaw. Don't use these builds for real work! A lot of exceptions ...

NetBeans Jigsaw prototyping goes on in jet-main repository on a branch jdk9. Daily builds are available at http://deadlock.netbeans.org/job/NB-for-JDK9_jigsaw/ with JavaSE build available for download from http://deadlock.netbeans.org/job/NB-for-JDK9_jigsaw/ws/dist/zip/

Getting Started

  1. The NetBeans Jigsaw build runs on top of Java SE 8, you can download the latest update of Java SE 8 here. JDK 7 and older is not supported by NetBeans after NetBeans 8.1 release.
  2. Download the latest JDK 9 Early Access with Project Jigsaw build from https://jdk9.java.net/jigsaw page.
  3. Download NB Jigsaw dev build from http://deadlock.netbeans.org/job/NB-for-JDK9_jigsaw/ws/dist/zip/ or build it from sources.
  4. Register the latest JDK 9 with Jigsaw build as a Java Platform in NetBeans JDK9 build by means of Tools | Java Platforms | Add Platform.

What works

NetBeans Jigsaw builds supports:

  • NB Java SE project support one Jigsaw module - Single module project.
  • module-info.java support: editing works and using its statement to set module boundaries for projects
  • All Editing features work according to what is declared in module-info.java
  • Using other NB Java SE Single module projects as libraries is possible, until Clean & Build is done.
  • Compilation works
  • All other features unrelated to Java language like SCM should work.

What DOES NOT work

At this moment (Dec 11th,2015) all features not listed above don't work. Namely:

  • Run & Debug for JavaSE Single module projects
  • ...

How to start

Add JDK9 Jigsaw as a Java Platform

image: Jigsaw_J_Platform.png

After adding Jigsaw as Java Platform to NetBeans create Jave SE project using New Project wizard. Then add module-info.java. It is available under New File templates in category Java.

image: Jigsaw_New_m-i.j.png

java.base module is by default added to any Jigsaw app. You can now edit module-info.java with requires,...

image: Jigsaw_m-i.j.png

If project has a dependency on another NetBeans Java SE project then this can be added in Project Properties | Libraries customizer. Select Modules tab, then click button Add Jar/Folder... and select project you want to use and its dist folder.

image: Jigsaw_Libs.png

Yes, this is just temporary solution in NB. If you do Clean & Build on your main project then this project reference must be entered again. It is fragile now.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo