Scala Build Tool

Screen Shot 2015-04-21 at 10.18.24 am

I started off on the wrong foot in my newfound zeal to learn Scala. This is a simple installation that went horribly wrong. Shouldn’t this be an effortless setup ?

localhost:project radhakrishnan$ sbt

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0

error: error while loading CharSequence, class file ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/
rt.jar(java/lang/CharSequence.class)’ is broken

(bad constant pool tag 18 at byte 10)

[error] Type error in expression

Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i

[warn] Ignoring load failure: no project loaded.

I upgraded my JDK to 1.8.0_45

After that I see this.

sbt -v from the command line throws this

java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

at jline.TerminalFactory.create(TerminalFactory.java:101)

at jline.TerminalFactory.get(TerminalFactory.java:159)

at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:85)

at sbt.ConsoleLogger$.(ConsoleLogger.scala:79)

at sbt.ConsoleLogger$.(ConsoleLogger.scala)

at sbt.GlobalLogging$.initial(GlobalLogging.scala:43)

at sbt.StandardMain$.initialGlobalLogging(Main.scala:60)

at sbt.StandardMain$.initialState(Main.scala:69)

at sbt.xMain.run(Main.scala:28)

at xsbt.boot.Launch$.run(Launch.scala:55)

at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)

at xsbt.boot.Launch$.launch(Launch.scala:69)

at xsbt.boot.Launch$.apply(Launch.scala:16)

at xsbt.boot.Boot$.runImpl(Boot.scala:31)

at xsbt.boot.Boot$.main(Boot.scala:20)

at xsbt.boot.Boot.main(Boot.scala)

So I downloaded the SBT launcher JAR and replaced the old one with it. I don’t understand any of this but it is working now.

I also found that years of programming experience is no match for the newfangled Scala.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: