scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.

Scala JIRA | Grzegorz Kossakowski | 2 years ago
  1. 0

    [SI-9103] Classpath initialization issues on JDK9 - Scala

    scala-lang.org | 11 months ago
    scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
  2. 0

    Latest (b45) release of JDK9 includes modularized Java's standard library. This causes problems with initialization of the classpath: {code} $ scalac A.scala error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found. at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17) at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66) at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102) at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1387) at scala.tools.nsc.Global$Run.<init>(Global.scala:1053) at scala.tools.nsc.Driver.doCompile(Driver.scala:31) at scala.tools.nsc.MainClass.doCompile(Main.scala:23) at scala.tools.nsc.Driver.process(Driver.scala:51) at scala.tools.nsc.Driver.main(Driver.scala:64) at scala.tools.nsc.Main.main(Main.scala) {code} REPL is hit the same way. As things stand right now, you can't run Scala on JDK9.

    Scala JIRA | 2 years ago | Grzegorz Kossakowski
    scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
  3. 0

    On JDK 1.9 the build of some modules fails with: error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found. at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17) at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66) at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102) at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1387) at scala.tools.nsc.Global$Run.<init>(Global.scala:1053) at scala.tools.nsc.Driver.doCompile(Driver.scala:31) at scala.tools.nsc.MainClass.doCompile(Main.scala:23) at scala.tools.nsc.Driver.process(Driver.scala:51) at scala.tools.nsc.Driver.main(Driver.scala:64) at scala.tools.nsc.Main.main(Main.scala) The underlying problem is https://issues.scala-lang.org/browse/SI-9103 which means that Scala does not work on JDK 1.9 yet.

    JBoss Issue Tracker | 10 months ago | Martin Gencur
    scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Latest (b45) release of JDK9 includes modularized Java's standard library. This causes problems with initialization of the classpath: {code} $ scalac A.scala error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found. at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17) at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66) at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102) at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257) at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1387) at scala.tools.nsc.Global$Run.<init>(Global.scala:1053) at scala.tools.nsc.Driver.doCompile(Driver.scala:31) at scala.tools.nsc.MainClass.doCompile(Main.scala:23) at scala.tools.nsc.Driver.process(Driver.scala:51) at scala.tools.nsc.Driver.main(Driver.scala:64) at scala.tools.nsc.Main.main(Main.scala) {code} REPL is hit the same way. As things stand right now, you can't run Scala on JDK9.

    Scala JIRA | 2 years ago | Grzegorz Kossakowski
    scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
  6. 0

    BUILD FAILURE

    GitHub | 2 years ago | adonis2014
    scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.

  1. rp 1 times, last 2 months ago
  2. Adarro 1 times, last 3 months ago
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. scala.reflect.internal.MissingRequirementError

    object java.lang.Object in compiler mirror not found.

    at scala.reflect.internal.MissingRequirementError$.signal()
  2. Scala
    Definitions$DefinitionsClass.init
    1. scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
    2. scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18)
    3. scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53)
    4. scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45)
    5. scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45)
    6. scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66)
    7. scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102)
    8. scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105)
    9. scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257)
    10. scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257)
    11. scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1387)
    11 frames
  3. Scala Compiler
    Main.main
    1. scala.tools.nsc.Global$Run.<init>(Global.scala:1053)
    2. scala.tools.nsc.Driver.doCompile(Driver.scala:31)
    3. scala.tools.nsc.MainClass.doCompile(Main.scala:23)
    4. scala.tools.nsc.Driver.process(Driver.scala:51)
    5. scala.tools.nsc.Driver.main(Driver.scala:64)
    6. scala.tools.nsc.Main.main(Main.scala)
    6 frames