Akka啟動報錯:Exception in thread "main" java.lang.ClassNotFoundException: akka.remote.RemoteActorRefProvider
阿新 • • 發佈:2022-04-04
Akka TCP編輯,啟動報錯如下:
Exception in thread "main" java.lang.ClassNotFoundException: akka.remote.RemoteActorRefProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at akka.actor.ReflectiveDynamicAccess.$anonfun$getClassFor$1(ReflectiveDynamicAccess.scala:21) at scala.util.Try$.apply(Try.scala:209) at akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:20) at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:38) at akka.actor.ActorSystemImpl.liftedTree1$1(ActorSystem.scala:759) at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:752) at akka.actor.ActorSystem$.apply(ActorSystem.scala:244) at akka.actor.ActorSystem$.apply(ActorSystem.scala:287) at akka.actor.ActorSystem$.apply(ActorSystem.scala:262) at com.m24.learn.akka.yellowchicken.server.YellowChickenServer$.delayedEndpoint$com$m24$learn$akka$yellowchicken$server$YellowChickenServer$1(YellowChickenServer.scala:31) at com.m24.learn.akka.yellowchicken.server.YellowChickenServer$delayedInit$body.apply(YellowChickenServer.scala:21) at scala.Function0.apply$mcV$sp(Function0.scala:34) at scala.Function0.apply$mcV$sp$(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:389) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74) at com.m24.learn.akka.yellowchicken.server.YellowChickenServer$.main(YellowChickenServer.scala:21) at com.m24.learn.akka.yellowchicken.server.YellowChickenServer.main(YellowChickenServer.scala)