- Java 9 Programming Blueprints
- Jason Lee
- 125字
- 2021-07-02 18:56:29
Creating a project
Typically speaking, it is much better if a build can be reproduced without requiring the use of a specific IDE or some other proprietary tool. Fortunately, NetBeans offers the ability to create a Maven-based JavaFX project. Click on File | New Project and select Maven, then JavaFX Application:

Next, perform the following steps:
- Click on Next.
- Enter Project Name as ProcessManager.
- Enter Group ID as com.steeplesoft.
- Enter Package as com.steeplesoft.processmanager.
- Select Project Location.
- Click on Finish.
Consider the following screenshot as an example:

Once the new project has been created, we need to update the Maven pom to use Java 9:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>9</source> <target>9</target> </configuration> </plugin> </plugins> </build>
Now, with both NetBeans and Maven configured to use Java 9, we're ready to start coding.
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- Mastering Natural Language Processing with Python
- 基于Swift語言的iOS App 商業實戰教程
- 青少年Python編程入門
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- 深入理解Elasticsearch(原書第3版)
- Swift 4 Protocol-Oriented Programming(Third Edition)
- UI設計全書(全彩)
- Visual Studio Code 權威指南
- 零基礎學C語言(升級版)
- 愛上C語言:C KISS
- Java 9 with JShell
- 程序員必會的40種算法
- 像程序員一樣使用MySQL
- 精通Oracle 12c 數據庫管理