I cannot compile the ControlsFX repo which I cloned from Github. It does not work because there are absolute paths in the required libraries (the ones with user "Eugene") that do not exist on my machine.
-
2that's a shame. https://stackoverflow.com/help/how-to-ask – L_Church Apr 19 '18 at 12:06
-
2Where did you clone it from? GitHub? That's not the official repo for ControlsFX. – José Pereda Apr 19 '18 at 12:45
-
Yes from Github. – luckymanStefan Apr 19 '18 at 12:47
-
FXExperience is a better choice. Solved now. Thanks to Mr Pereda. – luckymanStefan Apr 19 '18 at 13:04
2 Answers
If you are cloning ControlsFX from GitHub, you are cloning a fork, but not the official repo.
It seems this fork has some hardcoded paths in the .classpath
file, similar to those you posted in the screenshot.
If this is your source:
- This repo is a fork, not the official repo
- It hasn't been updated since more than four years
- You should check for a more trustable source
The official repo is in BitBucket: https://bitbucket.org/controlsfx/controlsfx
EDIT
If you just want to use ControlsFX as a dependency in your project, you don't need to clone or build the project from the scratch, you can just add it as a dependency.
There are several ways to do it, based on how you build your project.
With ant, adding manually your dependencies, you can download the jar from FXExperience for instance, but it is better if you do it directly from Maven Central. Select the required version (8.40.14 for Java 8 or 9.0.0 for Java 9), and download the jar.
With Maven or Gradle, you can just include the dependency:
Maven:
<dependency>
<groupId>org.controlsfx</groupId>
<artifactId>controlsfx</artifactId>
<version>8.40.14</version>
</dependency>
Gradle:
compile 'org.controlsfx:controlsfx:8.40.14'

- 44,311
- 7
- 104
- 132
-
José, what about the JAR from FXExperience? Would you also recommend? – luckymanStefan Apr 19 '18 at 13:17
-