错误:scala:Scala编译器库中没有'scala-library * .jar' [英] Error: scala: No 'scala-library*.jar' in Scala compiler library

查看:3210
本文介绍了错误:scala:Scala编译器库中没有'scala-library * .jar'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:播放2.3.0 / Scala 2.11.1 / IntelliJ 13.1

Environment: Play 2.3.0/Scala 2.11.1/IntelliJ 13.1

我使用Typesafe Activator 1.2.1创建新的使用Scala 2.11.1进行项目。项目创建后,我运行 gen-idea 。生成的IDEA项目无法编译并显示错误:

I used Typesafe Activator 1.2.1 to create a new project with Scala 2.11.1. After the project was created, I ran gen-idea. The generated IDEA project fails to compile with the error:

错误:scala:Scala编译器库中没有'scala-library * .jar'测试

我做错了什么?解决方法?

Am I doing something wrong? Workaround?

推荐答案

自IDEA 13以来,您应该使用与Scala插件捆绑在一起的SBT支持。

Since IDEA 13 you should use SBT support which is bundled with Scala plugin.

有了它,就不需要添加第三方SBT插件并运行特殊命令;只需使用文件 - >导入项目...菜单项导入项目,它将自动加载SBT项目结构及其依赖项。

With it there is no need to add third-party SBT plugins and run special commands; just import the project using "File -> Import project..." menu item, and it will automatically load SBT project structure and its dependencies.

这篇关于错误:scala:Scala编译器库中没有'scala-library * .jar'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆