Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

New project called Java Modular project was added. This allows to develop several JDK9 modules in one NetBeans project (Ant based). Advantage of this project over several Java SE project each containing 1 module is that dependencies are simply managed by declaring appropriate exports and requires in module-info.java files and all modules in the project are being compiled at once.

Following picture depicts how Java Modular Project can look like.

Image Added

Other Java 9 features

Every JavaSE (with module-info.java) or Java Modular App project can be packaged into JLink image allowing seamless distribution of app and required modules.

Image Added

HTML5 tags are supported in NetBeans editor and HTML5 JavaDoc can be generated using projects Properties | Documenting customizer.

Maven projects and JDK 9 modules

JavaShell

Java Shell is a tool in JDK9 defined in JEP 222 to introduce REPL (read-eval-print-loop) capabilities to Java. NetBeans provides integrated console-like UI for the Java Shell, leveraing NetBeans editor capabilites. NetBeans can support the tool with the user project configuration, so the Java Shell is set up to work with project classes and libraries.

Image Added

NetBeans IDE greatly extends capabilities of the commandline tool. NetBeans can execute the shell as an agent, similar to debugging agent, on the debugged or run application - currently only J2SE applications are supported, both Ant and Maven-based.

Image Added

The developer can use Java Shell as an agent within the running process (even without a debugger), to inspect internal state, alter it and trigger events.

Snippets written in JShell can be redefined and tested, even against a running code. When prototype is ready, it can be saved to a regular java source file and integrated with the project.

Image Added

 Image Added