© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_3

3. Creating Your First Module

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • How to write modular Java programs

  • How to compile modular programs

  • How to package the artifacts of a module into a modular JAR file

  • How to run a modular program

In this chapter, I explain how to work with a module—from writing the source code to compiling, packaging, and running the program. This chapter is divided into two parts. The first part shows you all the steps to write and run a module program using the command line. The second part repeats the same steps using the NetBeans IDE.

At the time of this writing, the NetBeans IDE is still under development and it ...

Get Java 9 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.