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

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:

  1. Click on Next.
  2. Enter Project Name as ProcessManager.
  3. Enter Group ID as com.steeplesoft.
  4. Enter Package as com.steeplesoft.processmanager.
  5. Select Project Location.
  6. 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.

主站蜘蛛池模板: 连云港市| 蒙城县| 额敏县| 罗源县| 三都| 云龙县| 黄石市| 彰武县| 体育| 庆云县| 花莲县| 原阳县| 丰原市| 桑植县| 东乌珠穆沁旗| 根河市| 平南县| 安福县| 呈贡县| 宿松县| 崇州市| 芷江| 襄汾县| 烟台市| 利辛县| 太和县| 商河县| 巩义市| 即墨市| 东乌珠穆沁旗| 台湾省| 南和县| 望城县| 醴陵市| 巴林右旗| 玉屏| 巫山县| 长兴县| 三都| 龙门县| 喜德县|