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

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.

主站蜘蛛池模板: 广宗县| 武功县| 都昌县| 布尔津县| 华坪县| 乌海市| 噶尔县| 和田县| 德庆县| 兴化市| 临海市| 太谷县| 阿克陶县| 钦州市| 赞皇县| 永泰县| 贺兰县| 儋州市| 佳木斯市| 柯坪县| 抚顺市| 临沧市| 嘉峪关市| 望奎县| 吉安市| 阿勒泰市| 太和县| 镇雄县| 芜湖县| 朔州市| 平潭县| 长泰县| 高邮市| 祥云县| 固原市| 台东县| 兴和县| 清远市| 措勤县| 年辖:市辖区| 涡阳县|