错误:Eclipse IDE 中的路径必须包含项目和资源名称:/<jar 文件名>

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4790728/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:41:23  来源:igfitidea点击:

Error: Path Must Include project and resource name:/<jar file name> in eclipse IDE

javaeclipseservlets

提问by Abcdfg

I am adding an external jar file to my Web server Application based on Java Servlets in Eclipse IDE. But when i tried to add that jar file an error occured as "An internal error occurred during updating tag library index . Path Must Include project and resource name:/<jar file name>".Please let me know which path the application asks or there is any specific directory where i have to put that jar file or any file where i have to update the location of jar file. Thanks

我正在向基于 Eclipse IDE 中的 Java Servlet 的 Web 服务器应用程序添加一个外部 jar 文件。但是,当我尝试添加该 jar 文件时,出现错误,因为"An internal error occurred during updating tag library index . Path Must Include project and resource name:/<jar file name>".请让我知道应用程序询问的路径,或者有任何特定目录我必须放置该 jar 文件或任何我必须更新 jar 文件位置的文件。谢谢

回答by broc.seib

JARs should go into your /WEB-INF/libdirectory.

JAR 应该进入您的/WEB-INF/lib目录。

回答by Kalyan Raju

Steps to add external jar

添加外部jar的步骤

1.Right click on your project

1.右键单击您的 project

2.Click on the Properties

2.点击 Properties

3.Click on Java Build Path

3.点击 Java Build Path

4.Go to LibrariesTab and click on the Add External Jarbutton

4.转到Libraries选项卡并单击Add External Jar按钮

5.Select the jar file from your local directory

5.从本地目录中选择jar文件

6.Press OKbutton

6.OK按下按钮