在eclipse下写的程序,运行没有问题。export成jar,运行说找不到com.microsoft.jdbc.sqlservere.SQLServerDriver
但我在jar里面的.classpath文件里设了三个库的jar地址。
.classpath文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="lib" path="./lib/msbase.jar"/>
<classpathentry exported="true" kind="lib" path="./lib/mssqlserver.jar"/>
<classpathentry exported="true" kind="lib" path="./lib/msutil.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>为什么死活找不到??请大虾指教!~
但我在jar里面的.classpath文件里设了三个库的jar地址。
.classpath文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="lib" path="./lib/msbase.jar"/>
<classpathentry exported="true" kind="lib" path="./lib/mssqlserver.jar"/>
<classpathentry exported="true" kind="lib" path="./lib/msutil.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>为什么死活找不到??请大虾指教!~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货