...
- Go to
File -> Import -> General -> Existing Projects into Workspace.
- Set the root directory to the base repository path (/
rt
by default). - Check
Search for nested projects.
- Optionally, you might find it convenient to work with Working Sets.
Configure Eclipse to use the latest JDK
...
Create a new Java project and add a module-info.java
that requires the needed modules. For example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
module zTest { requires javafx.base; requires javafx.graphics; requires javafx.controls; exports zTest; } |
...
If when running you receive warnning about missing packages or modules, edit the run configuration by going to its Dependencies -> Override Dependencies
, then delete the launch dependencies and Override
.
Run Sample Code (NOTE: old)
...
What this process does is add the gralde nature and build command to the .project files. This means that these files are now different than the ones in the repo. Additionally, the .settings folder for each project will contain a Buildship pref file. You will need to resolve the conflicts with the upstream repo, e.g., via hg ignore
or hg forget
.
Run Sample Code with Gradle Built Shared Libraries (Note: old)
...