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

2

3

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

Uniat answered 28/8, 2012 at 5:25 Comment(0)
R
6

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

Ravenna answered 28/8, 2012 at 5:56 Comment(0)
I
1

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

Iconoclast answered 19/3, 2013 at 11:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.