I looked for a solution to this question but have not found anything:
What is this library .openjfx:javafx-swing:jar:win:14.0.1:compile
?
What bothers me is the word "win". I am using a reference like this in my pom file
<dependency>
<groupId>.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>14.0.1</version>
</dependency>
but the dependency plugin complains that this library is missing.
Can anyone please provide a hint in the right direction?
I looked for a solution to this question but have not found anything:
What is this library .openjfx:javafx-swing:jar:win:14.0.1:compile
?
What bothers me is the word "win". I am using a reference like this in my pom file
<dependency>
<groupId>.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>14.0.1</version>
</dependency>
but the dependency plugin complains that this library is missing.
Can anyone please provide a hint in the right direction?
Share Improve this question edited Mar 17 at 17:42 Basil Bourque 341k123 gold badges936 silver badges1.3k bronze badges asked Mar 17 at 16:46 CristiCristi 7462 gold badges18 silver badges33 bronze badges 5 |1 Answer
Reset to default 4Here is the listing on mvnrepository (circa 17 April 2020):
https://mvnrepository/artifact/.openjfx/javafx-swing/14.0.1
The "win" value is the <classifier>
meaning that this dependency is Windows-specific.
<dependency>
<groupId>.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>14.0.1</version>
<classifier>win</classifier>
<scope>compile</scope>
<type>jar</type>
</dependency>
javafx-swing
module? That is for combining JavaFX components with Swing components, which is a bit of an edge use case. Typically you would usejavafx-controls
, and if you are using FXML usejavafx-fxml
in addition. I recommend letting your IDE handle all of this; in IntelliJ, for example (and others are similar), you can just use the "New Project" wizard and ask it to set up a JavaFX project. – James_D Commented Mar 17 at 19:15