Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classpath initialization issues on JDK9 #9103

Closed
scabug opened this issue Jan 20, 2015 · 3 comments
Closed

Classpath initialization issues on JDK9 #9103

scabug opened this issue Jan 20, 2015 · 3 comments

Comments

@scabug
Copy link

scabug commented Jan 20, 2015

Latest (b45) release of JDK9 includes modularized Java's standard library. This causes problems with initialization of the classpath:

$ 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)

REPL is hit the same way. As things stand right now, you can't run Scala on JDK9.

@scabug
Copy link
Author

scabug commented Jan 20, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9103?orig=1
Reporter: @gkossakowski
Affected Versions: 2.11.5

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@SethTisue said:
umbrella JDK 9 ticket at scala/scala-dev#139

@scabug scabug added this to the 2.13.0-M1 milestone Apr 7, 2017
@adriaanm adriaanm modified the milestones: 2.13.0-M1, 2.13.0-M2 Apr 14, 2017
@szeiger szeiger modified the milestones: 2.13.0-M3, 2.13.0-M2 Jul 20, 2017
@adriaanm adriaanm modified the milestones: 2.13.0-M3, 2.13.0-M4 Jan 30, 2018
@lrytz lrytz modified the milestones: 2.13.0-M4, 2.13.0-M5 Apr 23, 2018
@adriaanm adriaanm modified the milestones: 2.13.0-M5, 2.13.0-RC1 Aug 8, 2018
@xuwei-k
Copy link

xuwei-k commented Aug 16, 2018

Latest Scala 2.10.x, 2.11.x and 2.12.x support JDK9

https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html

@xuwei-k xuwei-k closed this as completed Aug 16, 2018
@SethTisue SethTisue modified the milestones: 2.13.0-RC1, 2.11.12 Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants