• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. Using an IDE

Page History

Versions Compared

Old Version 29

changes.mady.by.user Nir Lisker

Saved on Oct 30, 2019

compared with

New Version 30

changes.mady.by.user Nir Lisker

Saved on Oct 31, 2019

  • Previous Change: Difference between versions 28 and 29
  • Next Change: Difference between versions 30 and 31
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Eclipse is a popular IDE that is used by many committers to develop Java code. Eclipse projects have been created for you to use. You should use the latest Eclipse version, or at least 4.8 due to modular support.a version that supports JDK N-1 (for OpenJFX N) after patching (see below).

It's recommended that location of the local git repository not be inside the Eclipse workspace directory.

You should take advantage of Eclipse's incremental compiler and faster unit tests compared to Gradle gradle tasks, however, you still need Gradle gradle for the initial setup (./gradlew or /.gradlew build) that generates resources that are specified in the Eclipse projects dependencies, and to verify that you can build with javac. You can either use Gradle gradle from the command line or use Buildship (recommended).

Import the Eclipse Projects

You can either import the projects as Java projects and then run the gradle build manually, or import them directly as gradle projects with Buildship (recommended). In either case, you might find it convenient to use Working Sets, which you can configure during import or later.

To import as gradle projects:

  1. Go to File -> Import -> Gradle -> Existing Gradle Project.
  2. Set the root directory to the base repository path.
  3. If your workspace setting is to use the wrapper by default, there is no need to override the settings. Otherwise specify Gradle wrapper.

The import process includes an initial gradle build, at the end of which you should see the root project (jfx, or previously, rt) with its subprojects under Gradle project structure.

To import as Java projects:

  1. Go to File -> Import -> General -> Existing Projects into Workspace.
  2. Set the root directory to the base repository path (/rt by default).
  3. Check Search for nested projects.
  4. Optionally, you might find it convenient to work with Working Sets.

(Picture out of date)


Configure Eclipse to use the latest JDK

  1. Go to Window -> Preferences -> Java -> Installed JREs and Add and select the above version. If you want to find a regression or backport, you can switch to earlier versions here (will require rebuilding). You might see a warning that Eclipse does not support this Java version, this should not cause issues.
  2. Go to Window -> Preferences -> Java -> Compiler and set the compiler compliance level to the latest. You might not have an option for an unreleased version of Java. If For example, if compliance level 11 is not available, install the patch from the update site: http://download.eclipse.org/eclipse/updates/4.9-P-builds/. Similarly, for Java 13 use: https://download.eclipse.org/eclipse/updates/4.13-P-builds.

Building the workspace can take some time. However, thanks to Eclipse's incremental compiler, you do not need to rebuild all of it on every change.

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 328, "requestCorrelationId": "9b5c35c8abfb46c7"}