Classpath set, but: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

后端 未结 6 1600
感动是毒
感动是毒 2020-12-11 05:39

Okay, I\'m confused. My SQL Server JAR is here:

     Volume in drive C has no label.
 Volume Serial Number is 8008-2D93

 Directory of c:\\temp

03/07/2014           


        
6条回答
  •  無奈伤痛
    2020-12-11 06:30

    Open a new command prompt, and try with steps as below, its not good to work inside C:\WINDOWS\system32

    The issue says the sqljdbc4.jar is not properly set in the classpath.

            C:\Test
            set classpath=%classpath%;.;c:\temp\sqljdbc4.jar
            java -jar "C:\Users\MYUSER\Documents\NetBeansProjects\myappSource\dist\myappSource.jar" -u MYUSER -p MYPASS -j "jdbc:sqlserver://127.0.0.1\\msqlserver:1433;database=MYDB"
    

提交回复
热议问题