简体   繁体   English

在 ubuntu 中使用 ghost4j 获取 NoClassDefFoundError:com/sun/jna/win32/StdCallLibrary$StdCallCallback

[英]Getting NoClassDefFoundError: com/sun/jna/win32/StdCallLibrary$StdCallCallback using ghost4j in ubuntu

I am using ghost4j as a jar in my program to convert pdf to image.我在我的程序中使用 ghost4j 作为 jar 将 pdf 转换为图像。 I am getting Exception in thread "main"我在线程“main”中遇到异常

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

I am new in using ghost4j and I am using Ubuntu 12.04.我是使用 ghost4j 的新手,我使用的是 Ubuntu 12.04。

Could some one please help me with this?有人可以帮我解决这个问题吗?

It seems like the next dependency is missing for ghost4j version 1.0.1似乎 ghost4j 版本 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 https://github.com/java-native-access/jna

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Eclipse 获取 NoClassDefFoundError -&gt; com/sun/jna/platform/win32/Psapi - Getting NoClassDefFoundError -> com/sun/jna/platform/win32/Psapi with Eclipse 通过使用Ghost4j获取NoClassDefFoundError - Getting NoClassDefFoundError by using Ghost4j com.sun.jna.Pointer无法转换为com.sun.jna.platform.win32.WinDef.LPARAM - com.sun.jna.Pointer cannot be cast to com.sun.jna.platform.win32.WinDef.LPARAM JNA:com.sun.jna.platform.win32.Win32Exception-访问被拒绝 - JNA:com.sun.jna.platform.win32.Win32Exception- access denied Java JNA编写win32 API的自定义COM接口 - Java JNA Write Custom COM Interface of win32 API Ghost4j没有使用默认的ghostscript安装 - Ghost4j not using default ghostscript installation Java和Ghostscript(ghost4j和gsdll32.dll) - Java & Ghostscript (ghost4j and gsdll32.dll) CreateProcessAsUser 方法中的 hToken (com.sun.jna.platform.win32.WinNT.HANDLE) 是什么。 如何使用 windowsIdentity 对象检索它 - What is hToken (com.sun.jna.platform.win32.WinNT.HANDLE) in CreateProcessAsUser method. How to retrieve it using windowsIdentity Object 使用JNA从Win32 ListView检索项目文本 - Retrieving item text from Win32 ListView using JNA 在桌面应用程序Java中使用Ghost4j将PS转换为PDF - Using Ghost4j to convert PS to PDF in Desktop application java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM