Когда я попытался скомпилировать простую программу akka с безопасным типом (scala 2.10, akka, 2.1.0):
scalac -cp "akka-actor_2.10-2.1.0.jar:akka-camel_2.10-2.1.0.jar" write2.scala
error: bad symbolic reference. A signature in package.class refers to term apache
in package org which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling package.class.
error: bad symbolic reference. A signature in package.class refers to term camel
in value org.apache which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling package.class.
write2.scala:21: error: bad symbolic reference. A signature in package.class refers to term model
in value org.camel which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling package.class.
val mina = system.actorOf(Props[MyEndPoint])
three errors found
Код в строке 21:
val mina = system.actorOf(Props[MyEndPoint])
(Эта же программа была правильно скомпилирована в Eclipse, поэтому исходный код в порядке)
Скорее всего в переменной -cp отсутствует какой-то файл jar. Вопрос в том, что означает это странное/бесполезное сообщение об ошибке.
Спасибо, Томас
-cp
отсутствует около дюжины jar-файлов: все зависимости akka-actor и akka-camel (и их зависимости, и так далее...). Я настоятельно рекомендую использовать инструмент сборки, такой как SBT, чтобы позаботиться об этих вещах. - person gourlaysama   schedule 10.09.2013