java - JAR 中未找到 sqljdbc_auth.dll。 (在 IntelliJ 下)

标签 java intellij-idea jetbrains-ide sqljdbc java.library.path

我无法解决这个问题:

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

我已将 sqljdbc_auth.dll 复制到 C:\Windows\System32 中,但它不起作用。

最佳答案

如果您已将sqljdbc_auth.dll库放置在系统路径中(C:\Windows\System32),那么您应该能够使用集成的使用 jtds 或 Microsoft JDBC 驱动程序连接到 MSSQL 数据库的安全性。

对我来说,关键是保留“使用 Windows 域身份验证”框未选中,但随后在“高级”选项卡中将“integratedSecurity”属性从 false 切换为正确

我正在运行 IntelliJ 14.1.6

关于java - JAR 中未找到 sqljdbc_auth.dll。 (在 IntelliJ 下),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38615682/

相关文章:

java - servicemix 4.5 NoInitialContextException

groovy - 'add dynamic method' 在 Groovy/IntelliJ 中做什么?

java - 安卓工作室-Gradle : Execution failed for task ':Foo:dexDebug' - but why?

javascript - 如何在 PhpStorm 或 WebStorm 中逐行运行 JavaScript 代码?

java - 如何在 spring mvc 中没有模型对象的情况下向 session 添加属性?

java - 如何从 SPAN 中提取文本?请

java - Spring - Tomcat 配置 - 无法创建 .war 文件

kotlin - 使用 IntelliJ IDEA 时,Kotlin 中的 "An illegal reflective access operation has occurred"是什么意思?

python - 控制台通过 PyCharm 中的先前命令进行 Tab 键切换

java - 将 Redis ByteString 转换为 BasicDBObject