1

Running sbt run on a Scala, akka-grpc project, based on their basic tutorial I get:

[error] [jetty-alpn-agent] Could not find a matching alpn-boot JAR for Java version: 12.0.2

Is alpn-boot not compatible with Java 12 yet? What is this trying to say? Does it work with Java 11? Can I make it work with 12 making it believe it's Java 11?

[full source code]

Hunor Kovács
  • 1,062
  • 9
  • 16

1 Answers1

2

There's no alpn-boot requirement for Java 9+

That's because ALPN is built into Java starting in Java 9.

See: https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html#alpn-jdk9

Joakim Erdfelt
  • 46,896
  • 7
  • 86
  • 136
  • You're right, the answer was to remove all `enablePlugins(JavaAgent)` and `javaAgents += ` dependency definitions from `build.sbt`, Java 12 does not need any manual launch setting. Thanks. – Hunor Kovács Nov 15 '19 at 23:18