我已经安装了Akka,需要验证安装是否成功。我只是用
akka -version
但是这给了一个错误。那是什么原因? akka不支持-version吗? 这是它报告的错误
Starting Akka...
Running Akka 2.2.4
Exception in thread "main" java.lang.ClassNotFoundException: -version
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at akka.kernel.Main$$anonfun$1.apply(Main.scala:82)
at akka.kernel.Main$$anonfun$1.apply(Main.scala:82)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at akka.kernel.Main$.main(Main.scala:82)
at akka.kernel.Main.main(Main.scala)
答案 0 :(得分:1)
Akka不支持-version
命令。确定您的安装是否有效的一种方法是运行一个简单的boot class,正如Akka建议的那样:
> akka
No boot classes specified
Usage: bin/akka org.somewhere.BootClass