寫基於akka代碼出現報錯missing or invalid dependency detecte

具體的報錯信息以下內容: html

Error:scalac: missing or invalid dependency detected while loading class file 'ActorSystem.class'.
Could not access term typesafe in package com,
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 'ActorSystem.class' was compiled against an incompatible version of com.



事實上,我已經加了akka-actor_2.10-2.3.8.jar的jar包。。。。


解決上面的問題方法爲: maven

1.在http://central.maven.org/maven2/com/typesafe/config/1.3.0/config-1.3.0.jar 下載這個jar. ui

2.添加到classpath中。便可。 spa


我是用的是 scala 2.10版本; scala

相關文章
相關標籤/搜索