quiet-ice-72984
03/08/2017, 2:30 AMbinary
vs bundle
and the scala compiler. I'm creating an ssh repl which, when I build with binary, can correctly find org.scala-lang.scala-compiler`. Run with java -jar <big binary jar>
.
2017-03-08T02:01:11,480Z INFO [MyScalaSshShell-api] SshCommand - New ssh client connected
[Loaded org.apache.sshd.common.channel.Window$2 from file:/tmp/mitesh/query-api.jar]
[Loaded scala.tools.nsc.interpreter.MemberHandlers from file:/tmp/mitesh/query-api.jar]
[Loaded scala.tools.nsc.interpreter.ReplGlobal from file:/tmp/mitesh/query-api.jar]
However the same code, run with java -jar <bundle jar>
, cant seem to find it.
2017-03-08T02:28:43,492Z ERROR [MyScalaSshShell-api] CrashingThread - Unhandled exception:
scala.reflect.internal.MissingRequirementError: object scala in compiler mirror not found.
scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
It does find some of the classes, but I guess not all of them.
[Loaded scala.tools.nsc.interpreter.ReplGlobal$replPhase$ from file:/tmp/mitesh2/libs/1stparty.co.actioniq.flame-146.jar]
[Loaded scala.tools.nsc.interpreter.jline.InteractiveReader from file:/tmp/mitesh2/libs/1stparty.co.actioniq.flame-146.jar]