Skip to content

lkoniecki/jdk9-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JDK 9 Examples

This repository contain examples of new JDK 9 features.

List of examples:

How to create development environment?

  1. Download and install JDK9 Early Release.
  2. Download and install IntelliJ Idea. Version 2016.1.1 is required.
  3. Clone jdk9-examples as a new project.
  4. In the Project settings add new SKD using newly installed JDK9

SDK 5. Set Project SDK to newly added JDK9 and Project language level to 9 - JDK modularization etc.

Project structure 6. Set Project compiler output to out directory

Compiler output 7. Add 3 new Java modules:

  • jdk9 module. Set Content Root to $PROJECT_DIR\jdk9\src\jdk9 directory.

jdk9 module

  • org.example.module.api module. Set Content Root to $PROJECT_DIR\multiple-modules\org.example.module.api directory.

api module

  • org.example.module.impl module. Set Content Root to $PROJECT_DIR\multiple-modules\org.example.module.impl directory.

impl module 8. Configure dependencies for org.example.module.impl module and add org.example.module.api dependency.

impl module dependencies 9. Set Java Compiler parameters

Java Compiler parameters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published