1

I am using ghost4j as a jar in my program to convert pdf to image. I am getting Exception in thread "main"

java.lang.NoClassDefFoundError: com/sun/jna/win32/StdCallLibrary$StdCallCallback

I am new in using ghost4j and I am using Ubuntu 12.04.

Could some one please help me with this?

centic
  • 15,565
  • 9
  • 68
  • 125
user3253099
  • 91
  • 2
  • 11
  • 1
    Try posting some more code and the complete stacktrace which came with the exception. I haven't used ghost4, but it looks like it is looking for some Windows (win32) methods – Martin Nov 11 '14 at 13:30
  • make sure classpath is defined with all the jars you are using – user2717954 Nov 11 '14 at 14:33

1 Answers1

1

It seems like the next dependency is missing for ghost4j version 1.0.1

<!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna -->
        <dependency>
            <groupId>net.java.dev.jna</groupId>
            <artifactId>jna</artifactId>
            <version>4.1.0</version>
        </dependency>

https://github.com/java-native-access/jna

SerhiiH
  • 11
  • 1