错误: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
Error: Path Must Include project and resource name:/<jar file name> in eclipse IDE
提问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/lib
directory.
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 Libraries
Tab and click on the Add External Jar
button
4.转到Libraries
选项卡并单击Add External Jar
按钮
5.Select the jar file from your local directory
5.从本地目录中选择jar文件
6.Press OK
button
6.OK
按下按钮