LoginSignup
2
2

More than 5 years have passed since last update.

Maven使ってる時のJavaFXの設定

Posted at

JavaFXをmavenから利用するときはJavaFX Maven Pluginが利用できる.

pom.xmlに以下を追加し

<plugin>
    <groupId>com.zenjava</groupId>
    <artifactId>javafx-maven-plugin</artifactId>
    <version>2.0</version>
</plugin>

以下のコマンドを実行する

sudo mvn com.zenjava:javafx-maven-plugin:2.0:fix-classpath

なお,下のコマンドはJDKのクラスパスにJavaFXが入ってないことがあるため必要らしい

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2