Ghost4J. java.lang.UnsatisfiedLinkError:无法加载库"gsdll64" [英] Ghost4J. java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'

查看:127
本文介绍了Ghost4J. java.lang.UnsatisfiedLinkError:无法加载库"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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆