0

What do I have to require in module-info.java to use Akka with JDK 9? I have following dependency in maven.

<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-actor_2.12</artifactId>
  <version>2.5.6</version>
</dependency>
Naman
  • 27,789
  • 26
  • 218
  • 353
carpenter
  • 251
  • 2
  • 11
  • 1
    `jar --file=akka-actor-.jar --describe-module` should tell you. – Alan Bateman Nov 05 '17 at 14:59
  • @AlanBateman I typed you command but now I get `Unable to derive module descriptor for: akka-actor_2.12-2.5.6.jar akka.actor.2.12: Invalid module name: '2' is not a Java identifier` – carpenter Nov 05 '17 at 17:12
  • 2
    Unfortunately you are out of luck due to the odd name of this JAR file. The reason the module name is derived from the JAR file name is because the JAR file does not an explicit module (no module-info.class) and the maintainers have not reserved a module name yet by adding an Automatic-Module-Name attribute to the main manifest. A post to the akka mailing list might give some indication when or if they are planning to do anything in this area. – Alan Bateman Nov 05 '17 at 20:31
  • We plan to explicitly add the `Automatic-Module-Name` property to the manifest for the next release (2.5.7), that should make this simpler: https://github.com/akka/akka/issues/23931 – Arnout Engelen Nov 06 '17 at 16:35

0 Answers0