Denis Stephanov Denis Stephanov - 4 years ago 148
Scala Question

Scala - bad constant pool tag

I need to use this project . I proceed step by step, but when I enter

sbt run
I get this error :


master>sbt run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
error: error while loading CharSequence, class file 'C:\Program Files\Java\jdk1.8.0_111\jre\lib\rt.jar(java/lang/CharSequence.class)' is broken
(bad constant pool tag 15 at byte 1501)
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

I have installed scala 2.12.1. Any ideas?

Answer Source

Project is using scala version 2.9.1 (see build.sbt file) that was released long before java 8 came out. You seem to be running java 8. So you need to downgrade java to java 6 or 7.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download