Visual Studio Java语言支持添加jar [英] Visual Studio Java Language Support add jar

查看:823
本文介绍了Visual Studio Java语言支持添加jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Java语言支持工具。所以我创建了一个项目并可以运行它,但我还需要引用外部库。所以有一个我尝试添加的jar文件:引用 - >添加引用...

I'm trying to use Java Language Support tools. So I've created a project and could run it but I also need to reference the external library. So there is a jar file which I tried to add through: References -> Add Reference...

下面列出了代码。这样就无法构建项目。

The code is listed below. This way the project can't be built.

package pkg;
import org.apache.lucene.search.similarities.BM25Similarity;

public class MySimilarity extends BM25Similarity {
}

任何帮助将库添加到项目中表示赞赏。

Any help on adding the library to the project is appreciated.

推荐答案

要在步骤下添加jar使用:

To add jar use below steps :

右键单击项目 - >构建路径 - >配置构建路径 - >单击添加外部jar - >从您的机器中选择jar - >单击确定

right click on project -> build path ->configure build path -> click on add external jar -> select jar from your machine -> click ok

这篇关于Visual Studio Java语言支持添加jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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