2016-07-27 88 views
2

我解決不了這個問題:在JAR中找不到sqljdbc_auth.dll。 (下的IntelliJ)

Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: File /x64/sqljdbc_auth.dll was not found inside JAR. 
at com.intellij.execution.rmi.RemoteServer.setupDomainAuth(RemoteServer.java:131) 
at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:55) 
at com.intellij.database.remote.RemoteJdbcServer.main(RemoteJdbcServer.java:15) 
Caused by: java.io.FileNotFoundException: File /x64/sqljdbc_auth.dll was not found inside JAR. 
    at com.intellij.execution.rmi.RemoteServer.extractLibraryFromJar(RemoteServer.java:171) 
    at com.intellij.execution.rmi.RemoteServer.setupDomainAuth(RemoteServer.java:127) 
    ... 2 more 

我在C:\Windows\System32但它不工作複製sqljdbc_auth.dll

回答

2

如果您已將sqljdbc_auth.dll庫放入系統路徑(即C:\Windows\System32),那麼您應該能夠使用集成安全性使用jtds或Microsoft JDBC驅動程序連接到MSSQL數據庫。

對我來說,關鍵是要離開「使用Windows域驗證」複選框選中,但隨後在高級選項卡,從假切換「integratedSecurity」屬性真正

我跑的IntelliJ 14.1.6

+0

我不工作... **集成的身份驗證失敗。** –

+0

作品完美的我。非常感謝@Nate! – RubbelDieKatz