ip

Bookmark this to keep an eye on my project updates!

View the Project on GitHub Mr-YaRou/ip

Duke project template

This is a project template for a greenfield Java project. It’s named after the Java mascot Duke. Given below are instructions on how to use it.

Setting up in Intellij

Prerequisites

Importing the project into IntelliJ

  1. Open IntelliJ (if you are not in the welcome screen, click File > Close Project to close the existing project dialog first).
  2. Set up the correct JDK version.
    • Click Configure > Structure for new Projects (in older versions of Intellij:Configure > Project Defaults > Project Structure).
    • If JDK 11 is listed in the drop down, select it. If it is not, click New... and select the directory where you installed JDK 11.
    • Click OK.
  3. Click Import Project.
  4. Locate the project directory and click OK.
  5. Select Create project from existing sources and click Next.
  6. Rename the project if you want. Click Next.
  7. Ensure that your src folder is checked. Keep clicking Next.
  8. Click Finish.

Setting up Java FX

If you are not using Gradle

  1. Download the JavaFX 11 SDK and unzip it.

  2. Import the libs folder from the SDK into your project (note: JAVAFX_HOME is the directory in which you have unzipped the JavaFX SDK).

    File > Project Structure > Libraries > + > Java > {JAVAFX_HOME}/lib

  3. From Run > Edit Configurations, add the following line into your VM options for each of the main classes.

    --module-path {JAVAFX_HOME}/lib --add-modules javafx.controls,javafx.fxml
    e.g., --module-path C:/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml

If you are using Gradle

Update your build.gradle to include the following lines:

plugins {
    id 'java'
    id 'org.openjfx.javafxplugin' version '0.0.7'
}

repositories {
    mavenCentral()
}

javafx {
    version = "11.0.2"
    modules = [ 'javafx.controls', 'javafx.fxml' ]
}