From the course: Advanced Java Programming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding modular structures

Understanding modular structures - Java Tutorial

From the course: Advanced Java Programming

Start my 1-month free trial

Understanding modular structures

- [Instructor] Most of the time when working with modular applications, there will be more than one module. In NetBeans, it is easy to create a multi-module project. First, I'll go to File, and then New Project. Now there is an option for me to select a Java Modular Project. I'll do this and press Next. And then all I need to do is give it a Project Name. I'll leave it as the default name, JavaModularApplication1, and click Finish. Now I can start adding modules to my project. I right click on my project, in the Project window on the left, and then I go to New and Module. Now a module has been created for me. I'll call it moduleA for now. And just click on Finish. I can do the same again and create a second module by going to New, Module again. And I'll call the second one moduleB, and click on Finish again. NetBeans has already created my module-info files for me. In the Projects window, I can expand moduleA. Then look inside classes, then default package. If I expand that, then I…

Contents