如何将JAR包加入到项目的库中引用

那个地址连接无法连接了所以只有问大虾喇,是用什么软件引用库到Eclipse中,因为那四个JAR包是独立的,我看他这里是已经用JAR打包了四个JAR包合在一起,是不是我也要先打包成四个JAVA包然后再构建JAVA路径加入JAR包?还有就是如果知道了是哪个软件的设置,能不能告诉我怎样导入?》

你可以这个!1:右击项目——属性——Java构建路径——库——添加外部JAR——浏览到你所要添加的Jar包!2:把你要添加的Jar包复制到项目里的lib文件夹里也可以!
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-06-08
先把包 考到lib下,在选择项目右键属性,选择添加库,选中你拷贝的包 就可以了
第2个回答  2013-06-08
直接把jar包拷贝到你的项目的lib目录下就可以。
第3个回答  2015-08-04
如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>theMainClass</mainClass>
</manifest>
</archive>
</configuration>
</plugin>本回答被网友采纳