用CMD命令行运行.jar时出现如下错误,解决办法如下:

F:\ChromDownload\RSA签名验签工具windows_V1.4>java -jar openssl_tools.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:217)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
        at org.eclipse.swt.internal.C.(C.java:21)
        at org.eclipse.swt.widgets.Display.(Display.java:138)
        at com.alipay.support.RSAWindow.main(RSAWindow.java:40)
解决方法
F:\ChromDownload\RSA签名验签工具windows_V1.4>jre\bin\java.exe -jar openssl_tools.jar

个人认为出现上面错误并不全是jdk版本的问题,应该是其中的某一个地方错误,所以按照其他的方法我成功运行了此jar包,

你可能感兴趣的:(java)