javafx scala プロジェクトの作成中にブロックされました。intellij idea 13 (ast one) で scala プロジェクトを作成し、scalafx の jar ("scalafx_2.10-8.0.0-M1.jar") を手動で追加しました。そして、この小さなプログラムをコピーしました:
object World extends JFXApp {
stage = new JFXApp.PrimaryStage {
title = "Hello World"
width = 600
height = 450
scene = new Scene {
fill = Color.LIGHTGREEN
content = Set(new Rectangle {
x = 25
y = 40
width = 100
height = 100
//fill <== when(hover) then Color.GREEN otherwise Color.RED
})
}
}
}
残念ながら、次のエラーメッセージが表示されます。
アプリケーション開始メソッドの例外 スレッド「メイン」の例外 java.lang.RuntimeException: com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:399) のアプリケーション開始メソッドの例外 com.sun.javafx.application. LauncherImpl.access$000(LauncherImpl.java:47) at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115) at java.lang.Thread.run(Thread.java:722) 原因: java .lang.NoClassDefFoundError: scalafx.Includes$ の javafx/scene/shape/CullFace.(Includes.scala:55)
問題はjavafxに関連しているようですが、通常はjava7でパックされているため無視しました...何が間違っていたのか教えていただけますか?