如何将Jar库添加到IntelliJ Idea SBT Scala项目中? [英] How to add Jar libraries to an IntelliJ Idea SBT Scala project?

查看:518
本文介绍了如何将Jar库添加到IntelliJ Idea SBT Scala项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个IntelliJ Idea SBT Scala项目,如 Heiko Seeberger的文章描述。

I've created an IntelliJ Idea SBT Scala project like Heiko Seeberger's article describes.

我想在这个项目中添加一个Jar库(joda-time) 。这个怎么做?简单地将它们放入项目的/ lib中也无济于事。如果我在Idea的项目树中右键单击外部库,则新建将变为灰色。

I'd like to add a Jar library (joda-time) to use in this project. How to do this? Simply putting them into project's /lib does not help. If I right-click "External libraries" in Idea's project tree, "New >" is greyed.

推荐答案

在IntelliJ创意中你的项目窗口,得到文件>>项目结构>>图书馆。单击库选项后,将显示两个窗格。在最左侧窗格的顶部,单击绿色的+按钮。

In the IntelliJ Idea window of your project, got to File >> Project structure >> Libraries. After clicking that Libraries option, two panes will show up. At the top of the left-most pane, click the green "+" button.

这篇关于如何将Jar库添加到IntelliJ Idea SBT Scala项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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