java - Scala repl throws error -
when type scala
on terminal start repl, throws error
scala> [init] error: error while loading annotatedelement, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar (java/lang/reflect/annotatedelement.class)' broken (bad constant pool tag 15 @ byte 2713)
when hit enter , type println("hello, world")
, again throws this
error: error while loading charsequence, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar (java/lang/charsequence.class)' broken (bad constant pool tag 15 @ byte 1501)
i using ubuntu 14.04
, java -version
gives
java version "1.8.0_05" java(tm) se runtime environment (build 1.8.0_05-b13) java hotspot(tm) 64-bit server vm (build 25.5-b02, mixed mode)
either update newer scala version (2.10.3+) or downgrade java java 6/7. have seen in output, 2.9.2 here long before java 8 introduced (copyright 2002-2011, lamp/epfl
), don't work together.
this duplicate question contains exact instructions on ubuntu's java downgrade.
Comments
Post a Comment