我现在对 Scala 有点菜鸟,正在忙于制作一些小玩具项目。
我想做的一件事是进行一些网页抓取,快速谷歌搜索建议使用此处提供的dispatch
包http://dispatch.databinder.net/Download
问题是我不知道下载后把这个包放在哪里,也不知道 Scala 需要它在哪里供我参考。
我尝试使用 sbaz available 来查找它,但它似乎也不在那里。
任何帮助将不胜感激。
I'm a bit of a noob to Scala at the moment and I'm messing about making little toy projects.
One of the things I want to do is a bit of web page scraping, a quick google search suggested using the dispatch
package available from here http://dispatch.databinder.net/Download
The thing is I don't know where to put this package once downloaded and I don't know where Scala needs it to be for me to reference it.
I tried looking for it using sbaz available
but it doesn't seem to be there either.
Any help would be appreciated.
发布评论
评论(1)
将 JAR 添加到 类路径:
,或下载SBT 、Maven,任何其他可以管理依赖项的构建工具。
例如,在 SBT 中,您只需将所需的所有 JAR 放在 /lib 下文件夹 让它们自动添加到类路径中。
Add JAR to the classpath:
,or download SBT, Maven, any other build tool that can manage dependencies.
E.g., in SBT you can simply put all the JARs you need under the /lib folder to get them automatically added to the classpath.