2016-12-28 86 views
0

後,我從SDK版本scala-SDK-4.4.1-vfinal-2.11-win32.win32.x86_64切換到scala-SDK-4.5.0-vfinal-2.11-win32.win32.x86_64版本I'm獲得在日食的一些錯誤消息:斯卡拉與ScalaFx:無效或缺少相關

eclipse errors

完整的錯誤消息:

missing or invalid dependency detected while loading class file 'Alert.class'. Could not access term Alert in package javafx.scene.control, because it (or its dependencies) are missing. Check your build definition for missing or conflicting dependencies. (Re-run with -Ylog-classpath to see the problematic classpath.) A full rebuild may help if 'Alert.class' was compiled against an incompatible version of javafx.scene.control. ageofscala Unknown Scala Problem

我得到了23個錯誤。

我在我的項目中使用scalaFx。在切換到較新的SDK之前,該項目運行良好。現在它甚至不會使用舊的SDK版本運行。因爲我切換到新的SDK的原因是此錯誤:Eclipse returns error message 「Java was started but returned exit code = 1」所以我加入這行的eclipse.ini文件:

-vm C:/Program Files/Java/jdk1.8.0_25/jre/bin/server/jvm.dll

這裏是我的build.sbt:

scalaVersion := "2.11.8" 

libraryDependencies += "com.typesafe" % "config" % "1.2.1" 
libraryDependencies += "com.github.nscala-time" %% "nscala-time" % "2.12.0" 
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.4.4" 
libraryDependencies += "com.lambdaworks" %% "jacks" % "2.3.3" 
libraryDependencies += "com.typesafe.play" % "play_2.11" % "2.5.3" 
libraryDependencies += "org.scala-lang" % "scala-swing" % "2.11.0-M7" 
libraryDependencies += "org.scalafx" % "scalafx_2.11" % "8.0.92-R10" 

是否有一些版本問題或其他問題?我試圖更新項目到最新的Scala版本("2.12.1")和最新的ScalaFx版本("org.scalafx" %% "scalafx" % "8.0.102-R11"),但沒有成功... 任何人都可以請幫我嗎?謝謝!

回答

1

警報是在Java 8u40中添加的。你有8u25。您需要將您的Java版本更新到更新的版本。