Eclipse和Java的新手......任何人都可以告诉我如何在Eclipse中安装Apache常用语言2.5?
http://commons.apache.org/lang/download_lang.cgi
谢谢!
tom*_*tom 15
详细步骤 -
0)从Apache Commons下载commons-lang-2.5-bin.zip - Lang下载http://commons.apache.org/lang/download_lang.cgi 在目录中展开存档(例如\ projects\commons-lang-2.5 )
在Eclipse中 -
1).将库放在Java构建路径中
Eclipse - > Preferences:Java - Build path - 用户库按下"New ..."按钮,在"User library name:"中输入'appache-commons-lang'.
单击以选中"定义的用户库"列表中的"appache-commons-lang",然后单击"添加JAR ..."按钮并浏览commons-lang-2.5.jar(在之前保存的文件夹中)并选择它.
在"已定义的用户库"中,在commons-lang-2.5.jar下需要指定"源附件"和"Javadoc位置".对于它们中的每一个,选择它,然后按"编辑...",然后按"外部文件"并浏览相应的jar(commons-lang-2.5-sources.jar和commons-lang-2.5-javadoc.jar)
2)在项目中添加此用户库在Package Explorer中右键单击项目名称,转到Properties,然后选择Libraries选项卡; 单击"添加库..."按钮,从列表中选择"用户库","下一步",标记[x] appache-commons-lang,然后单击"完成"
从http://commons.apache.org/proper/commons-logging/download_logging.cgi下载 commons-logging-1.2-bin.zip
右键单击您的项目,然后:项目属性 > Java 构建路径 > 库 > 添加外部 JARS
从下载的 unzip commons-logging-1.2-bin.zip 中选择 commons-logging-1.2.jar 和 commons-logging-1.2-javadoc.jar