2016-12-28 19 views
0

나는 일식에 일부 오류 메시지를 받고 버전 scala-SDK-4.5.0-vfinal-2.11-win32.win32.x86_64 미안에 SDK 버전 scala-SDK-4.4.1-vfinal-2.11-win32.win32.x86_64로 전환 후 :스칼라 : 잘못되거나 누락 된 의존성

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 파일에 다음 행을 추가 :

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" 

:

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

그리고 여기 내 build.sbt입니다 버전 문제 나 다른 문제가 있습니까? 나는 최신 스칼라 버전 ("2.12.1")과 최신 ScalaFx 버전 ("org.scalafx" %% "scalafx" % "8.0.102-R11")으로 프로젝트를 업데이트하려고했지만 성공하지 못했습니다 ... 아무도 도와 줄 수 있습니까? 감사!

답변

1

Java 8u40에 경고가 추가되었습니다. 너는 8u25을 가지고있다. 자바 버전을 최신 버전으로 업데이트해야합니다.