我需要使用这个项目https://github.com/dwins/mapnik2geotools。我一步一步地进行,但是当我输入sbt run
时,我得到了这个错误:
C:\Users\Admin\Downloads\mapnik2geotools-master\mapnik2geotools-
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?
我已经安装了scala 2.12.1。有什么想法吗?
答案 0 :(得分:1)
Project正在使用scala版本2.9.1(请参阅build.sbt文件),该版本早在java 8发布之前就已发布。你好像在运行java 8.所以你需要将java降级到java 6或7。