Reputation: 271
I'm new to Scala and Akka and I was just trying to do one of the sample tutorial projects in Eclipse (Luna) with Scala IDE (4.1.0) and JDK8.
println
for example, it builds and I can right click and run Scala application with no issue. Then I try the Akka equivalent where it creates a greeting and greets someone with Hello and I get this strange compile error:
Description Resource Path Location Type
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. akkatest2 Unknown Scala Problem
I have added akka-actor (2.11) jar to the build path under properties as instructed by one of these akka walk throughs I found online and the project already had Scala Library Container included when I first went in because the project was created as a Scala Project in Eclipse.
I'm thinking if I was just missing another akka jar since there were a bunch of other ones, it would complain about some akka.* package. Looks like it's looking for com.typesafe and failing so I'm not sure what else I'm missing.
Upvotes: 1
Views: 1562
Reputation: 11
You should include all the jars in Akka Folder. Even some jars may not be needed in your current project , but dependencies make them necessary
Upvotes: 0
Reputation: 11
Include config-1.2.1.jar(on my system) file in the project. config-1.2.1.jar has com.typesafe.config classes
Upvotes: 1
Reputation: 45
Faced same problem. Add typesafe config jar to the classpath and all akka dependencies. It will work fine.
Upvotes: 1