Skip to Content
The Java Workshop
book

The Java Workshop

by David Cuartielles, Pradeep Kumar Gupta, Scott Cosentino, Andreas Göransson, Eric Foster-Johnson, Avinash Kate
October 2019
Beginner
606 pages
10h 37m
English
Packt Publishing
Content preview from The Java Workshop

6. Libraries, Packages, and Modules

Overview

This chapter will introduce you to the various ways of packaging and bundling Java code, as well as the tools required to help build your own Java projects. The first step is learning how to organize your code into packages, so that you can build a Java ARchive (JAR) file from those packages. From there, you will practice creating an executable JAR file using Java build tools like Maven and Gradle, which will further help you to include third-party open source libraries in your projects. By the end of this chapter, you will be well equipped to create your own Java module to group your packages together.

Introduction

Any sophisticated Java application will require many separate Java classes. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Java Collections

Modern Java Collections

Simon Roberts
Java By Comparison

Java By Comparison

Simon Harrer, Linus Dietz, Jörg Lenhard

Publisher Resources

ISBN: 9781838986698Supplemental Content