no sqljdbc_auth in java.library.path

后端 未结 6 649
再見小時候
再見小時候 2020-12-03 00:38

I have a Java EE Web Application which connects to a SQL Server 2008 instance. I don\'t have any problem connecting and retrieving to all my tables, except for one of them.

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 01:18

    Here are the steps if you want to do this from Eclipse :

    1) Create a folder 'sqlauth' in your C: drive, and copy the dll file sqljdbc_auth.dll to the folder

    1) Go to Run> Run Configurations

    2) Choose the 'Arguments' tab for your class

    3) Add the below code in VM arguments:

    -Djava.library.path="C:\\sqlauth"
    

    4) Hit 'Apply' and click 'Run'

    Feel free to try other methods .

提交回复
热议问题