Java - 库问题
我正在使用 Qt
到 Java
的 QtJambi
端口,在启动我的应用程序时,它需要相应的 dll
文件。
Loading library: 'qtjambi.dll'...
- using 'java.library.path'
at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(Unknown
at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary(Unknown Source)
at com.trolltech.qt.Utilities.loadJambiLibrary(Unknown Source)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(Unknown Source)
... 7 more
Caused by: java.lang.RuntimeException: Library 'qtjambi.dll' wasn't found in PATH
现在,配置我的项目的最佳方法是什么(在 IntelliJ IDEA
中),以便它自动使用提供的 dll
文件?
我不想修改 PATH
或类似的内容,因为我希望这是仅限项目的解决方案,与 OS
设置无关。
谢谢
I am using QtJambi
port of Qt
to Java
and when launching my application it requires the corresponding dll
files.
Loading library: 'qtjambi.dll'...
- using 'java.library.path'
at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(Unknown
at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary(Unknown Source)
at com.trolltech.qt.Utilities.loadJambiLibrary(Unknown Source)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(Unknown Source)
... 7 more
Caused by: java.lang.RuntimeException: Library 'qtjambi.dll' wasn't found in PATH
Now, what would be the best way to configure my project (in IntelliJ IDEA
) so that it would automatically use the provided dll
files?
I don't want to modify the PATH
or something like that, because I want this to be project-only solution, unrelated to the OS
settings.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置 Java 系统属性
java.library.path
- 即,在用于启动软件的运行配置中设置此项。
Set the Java system property
java.library.path
-- i.e.,Set this in the run configuration you use to launch your software.