Java 将外部 JAR 添加到 Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18870213/
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
Adding external JAR to Eclipse
提问by Micah Kwaka
I am using the spring frame work tutorial, I am in the part I have to add the external JAR but I seem to be missing some like org.springframework.asm-3.1.0.M2, antlr-runtime-3.0.1. SO what have I done wrong?
我正在使用 spring 框架工作教程,我在我必须添加外部 JAR 的部分,但我似乎缺少一些像 org.springframework.asm-3.1.0.M2、antlr-runtime-3.0.1。所以我做错了什么?
回答by TheKojuEffect
Download those dependent jar files.
下载那些依赖的 jar 文件。
Right click on your project -> Build Path -> Add External Jars
Follow this tutorialto setup java build path in eclipse.
按照本教程在 Eclipse 中设置 java 构建路径。
回答by Krishna
Well first of all, download that jar from this link:
首先,从这个链接下载那个jar:
http://www.java2s.com/Code/Jar/a/Downloadantlrruntime301jar.htm
and then Right click on your project and Goto BUIld path and select ADD External Jar.
然后右键单击您的项目并转到 BUIld 路径并选择添加外部 Jar。
Right Click -> Build path -> add externalJars
and even you can add it into the /WEB-INF/lib folder too.
甚至您也可以将其添加到 /WEB-INF/lib 文件夹中。
and that way program will work error will be solved.
这样程序将工作错误将得到解决。