官术网_书友最值得收藏!

  • Modular Programming in Java 9
  • Koushik Kothagal
  • 445字
  • 2021-07-02 18:38:19

Setting up the NetBeans IDE

In order to write and follow the code in this book, you don't have to use any integrated development environments (IDEs). This book will cover writing, compiling, and executing code manually using the command line. You can write code using a text editor of your choice. The code samples accompanying this book also work with the steps and commands showcased in this book.

You could also follow along with an IDE. At the time of writing, NetBeans and IntelliJ Idea has growing support for Java modular projects, with Eclipse support under development. This chapter outlines the steps to create a modular project in NetBeans, should you choose to use the NetBeans IDE. To set it up, in addition to following the steps to set up Java, make sure you install the latest version of NetBeans with Java 9 module support by going to https://netbeans.org/downloads/ and choosing either the Java SE or the Java EE version to download:

Note that if the release version of NetBeans does not yet support Java 9 when you read this, you might have to download an early access copy here: http://bits.netbeans.org/download/trunk/nightly/latest/. Once you download the installer and execute it, you should have a shiny new copy of NetBeans on your computer ready for you to use.

Most veteran Java programmers would acknowledge that it has been a while since they have created folder structures by hand for their Java projects. The Java language has benefitted from incredibly useful tooling support over the years. IDEs such as Eclipse, NetBeans, and IntelliJ IDEA make it such a breeze to create source and package folders that developers don't even tend to think about those aspects of code organization too often. However, in this chapter, and in fact in the rest of the book, we will learn how to build folders and files by hand, as well as compile and run the code by executing commands manually from the command line. This is because IDEs, as convenient as they might be, tend to hide the details and workings around the process of structuring and compiling code. We intend to examine how Java 9 modules work, and the fundamental workings of the code structure, as well as compiling and linking commands, are essential to mastering these concepts.

While the prospect of writing Java code without an IDE might seem daunting, let me assure you that this is something you'll likely get used to very quickly. You'll learn the steps to build and execute modular Java 9 code in this chapter, and then it's just a matter of applying the same steps independent of the complexity of the code base itself.
主站蜘蛛池模板: 民丰县| 元谋县| 巢湖市| 奉化市| 易门县| 公安县| 临沭县| 天气| 惠州市| 长葛市| 鹤岗市| 乌鲁木齐县| 长治县| 淮阳县| 高青县| 平乡县| 日喀则市| 乌拉特前旗| 沂源县| 伊吾县| 乐业县| 绍兴县| 安岳县| 府谷县| 神池县| 当阳市| 临沧市| 云和县| 夏河县| 呼图壁县| 花垣县| 榆树市| 大悟县| 汨罗市| 绥德县| 洱源县| 大庆市| 牟定县| 嵊州市| 福州市| 浦江县|