Ghost4J. java.lang.UnsatisfiedLinkError:无法加载库"gsdll64" [英] Ghost4J. java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'
问题描述
我使用Maven将Ghost4J 0.45
包含到我的项目中,并将Ghostscript安装到C:\Program Files\gs\gs9.06
中.
I included Ghost4J 0.45
into my project using Maven and installed Ghostscript into C:\Program Files\gs\gs9.06
.
但是我仍然收到错误java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'
.
But I still get an error java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'
.
我添加到PATH
env变量目录中,该目录位于"gsdll64.dll"(即C:\Program Files\gs\gs9.06
).还尝试使用-Djava.library.path=/path/to/dir
启动应用程序.
I added into PATH
env variable directory where located 'gsdll64.dll' (i.e. C:\Program Files\gs\gs9.06
). Also tried launch application using -Djava.library.path=/path/to/dir
.
但是我总是得到UnsatisfiedLinkError
(但是当我使用JVM参数-Djava.library.path
启动时,我得到ClassNotFound
异常(Eclipse找不到Main类,但是当我启动我的应用程序时,我手动将Eclipse指向Main类) )/
But I alwways get UnsatisfiedLinkError
(but when I launch using JVM argument -Djava.library.path
I get ClassNotFound
exception (Eclipse can't find Main class, but I manually point Eclipse to Main class when I laucnh my app))/
推荐答案
如果将gsdll64
复制到工作目录是否有效? :-)
Does it work if you copy gsdll64
to your working directory? :-)
这篇关于Ghost4J. java.lang.UnsatisfiedLinkError:无法加载库"gsdll64"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!