Ghost4J. java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'

风格不统一 提交于 2019-12-01 12:50:27

问题


I included Ghost4J 0.45 into my project using Maven and installed Ghostscript into C:\Program Files\gs\gs9.06.

But I still get an error java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'.

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.

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))/


回答1:


Does it work if you copy gsdll64 to your working directory? :-)




回答2:


if u want to use a system property -Djna.library.path=/path/to/dir should be used instead of -Djava.library.path=/path/to/dir



来源:https://stackoverflow.com/questions/12153235/ghost4j-java-lang-unsatisfiedlinkerror-unable-to-load-library-gsdll64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!