FS#50524 - [scala] fails to initialize compiler
Attached to Project:
Community Packages
Opened by Michael Eder (becha) - Friday, 26 August 2016, 12:01 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 17 November 2016, 14:10 GMT
Opened by Michael Eder (becha) - Friday, 26 August 2016, 12:01 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 17 November 2016, 14:10 GMT
|
Details
Description:
After installing scala, the REPL interpreter fails to initialize: Welcome to Scala 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_102). Type in expressions for evaluation. Or try :help. scala> [init] error: error while loading <root>, Error accessing /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar Failed to initialize compiler: object java.lang.Object in compiler mirror not found. ** Note that as of 2.8 scala does not assume use of the java classpath. ** For the old behavior pass -usejavacp to scala, or if using a Settings ** object programmatically, settings.usejavacp.value = true. Failed to initialize compiler: object java.lang.Object in compiler mirror not found. ** Note that as of 2.8 scala does not assume use of the java classpath. ** For the old behavior pass -usejavacp to scala, or if using a Settings ** object programmatically, settings.usejavacp.value = true. The file however exists and is readable: stat /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar Datei: '/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar' Größe: 0 Blöcke: 0 EA Block: 4096 reguläre leere Datei Gerät: 13h/19d Inode: 3614480 Verknüpfungen: 1 Zugriff: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Java 7 and 8 are installed, Java 8 ist set as default via archlinux-java: archlinux-java status Available Java environments: java-7-openjdk java-8-openjdk (default) I did not find a lot of issues like this, so I assumed this is archlinux-related. Additional info: sudo pacman -Qi scala jdk8-openjdk Name : scala Version : 2.11.8-1 Beschreibung : A Java-interoperable language with object-oriented and functional features Architektur : any URL : http://www.scala-lang.org Lizenzen : BSD Gruppen : Nichts Stellt bereit : Nichts Hängt ab von : java-runtime Optionale Abhängigkeiten : scala-docs scala-sources graphviz: generate diagrams [Installiert] Benötigt von : Nichts Optional für : Nichts In Konflikt mit : Nichts Ersetzt : Nichts Installationsgröße : 28,27 MiB Packer : Sergej Pupykin <pupykin.s+arch@gmail.com> Erstellt am : Mi 09 Mär 2016 16:13:27 CET Installiert am : Fr 26 Aug 2016 13:46:48 CEST Installationsgrund : Ausdrücklich installiert Installations-Skript : Nein Verifiziert durch : Signatur Name : jdk8-openjdk Version : 8.u102-1 Beschreibung : OpenJDK Java 8 development kit Architektur : x86_64 URL : http://openjdk.java.net/ Lizenzen : custom Gruppen : Nichts Stellt bereit : java-environment=8 java-environment-openjdk=8 Hängt ab von : java-environment-common jre8-openjdk=8.u102-1 Optionale Abhängigkeiten : Nichts Benötigt von : android-studio apache-ant eclipse-common intellij-idea-ultimate-edition maven Optional für : libbluray libreoffice-fresh texlive-latexextra In Konflikt mit : Nichts Ersetzt : jdk8-openjdk-wm Installationsgröße : 37,77 MiB Packer : Guillaume ALAUX <guillaume@archlinux.org> Erstellt am : Mi 27 Jul 2016 09:55:05 CEST Installiert am : Do 28 Jul 2016 13:54:32 CEST Installationsgrund : Ausdrücklich installiert Installations-Skript : Ja Verifiziert durch : Signatur Steps to reproduce: Install scala start "scala" on command line |
This task depends upon
Closed by Sergej Pupykin (sergej)
Thursday, 17 November 2016, 14:10 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in scala-2.12.0
at least it starts with jdk8
Thursday, 17 November 2016, 14:10 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in scala-2.12.0
at least it starts with jdk8