Skip to content

Instantly share code, notes, and snippets.

@omayib
Created October 16, 2014 03:13
Show Gist options
  • Save omayib/0e324fd34c266429dd7a to your computer and use it in GitHub Desktop.
Save omayib/0e324fd34c266429dd7a to your computer and use it in GitHub Desktop.
how to install scala 2.11.2 version
#Problem error
error: error while loading CharSequence, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
#requierement
- i install scala 2.9.1 version (via console sudo apt-get install scala)
and java 8 version on my Ubuntu 12.04.
#suspect
- scala 2.9.1 version which is not yet support for java 8
#solution
- remove the old scala then instal to 2.11.2 version with steps below
1. sudo apt-get remove scala-library scala
2. wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb
3. sudo dpkg -i scala-2.11.2.deb
4. sudo apt-get update
5. sudo apt-get install scala
@vherasme
Copy link

Hi. If you already have the .deb package, why is it necessary to run step 4 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment