Error: A JNI error has occurred, please check your installation and try again

简介: Error: A JNI error has occurred, please check your installation and try again

今天加了一下优化选项,测试ProGuard。然后出现了错误。一想,同事刚加了个几个包,是不是因为这个?复制过来之后,依然出错:


C:\Program Files\Taishan\Office\bin>..\jdk\bin\java -jar Office.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 60
Exception Details:
  Location:
    Main.x()I @5: ifnull
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0x0000000: b802 bb59 4bc6 0037 2ab4 0105 593b 049f
    0x0000010: 0013 1a06 9f00 0e1a 089f 0009 1a10 07a0
    0x0000020: 001d b201 1604 7e9a 0015 04b3 0116 06bc
    0x0000030: 0a59 0304 4f59 0508 4fb3 012b b201 16ac
    0x0000040:
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)

 奇怪的是,使用另外一种方式就能启动。网上搜索:


一种可能是编译与运行使用的JDK不一致。这个不存在。吾都是泰山JDK8。

需要加个-noverify

C:\Program Files\Taishan\Office\bin>..\jdk\bin\java -jar -noverify Office.jar

 果然正常了。再去棵棵另外一种启动方式,原来有类似参数。这样就通顺了。

目录
相关文章
|
6月前
|
Linux Go C语言
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
118 0
|
7月前
An unexpected error was encountered while executing a WSL command. Common causes include access righ
An unexpected error was encountered while executing a WSL command. Common causes include access righ
|
Java Maven Android开发
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
|
7月前
|
机器学习/深度学习 Java Android开发
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
240 0
SignTool Error: An error occurred while attempting/Error information: “SignerTimeStamp() failed.“
SignTool Error: An error occurred while attempting/Error information: “SignerTimeStamp() failed.“
152 0
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
147 0
|
数据库 C++
VS错误的解决解决:LINK fatal error LNK1000: Internal error during IncrBuildImage
VS错误的解决解决:LINK fatal error LNK1000: Internal error during IncrBuildImage
253 0
ERROR: Could not install packages due to an Oserror: [Errno 13] Permission denied: RECORD Consider
ERROR: Could not install packages due to an Oserror: [Errno 13] Permission denied: RECORD Consider
1119 0
ERROR: Could not install packages due to an Oserror: [Errno 13] Permission denied: RECORD Consider
|
Go iOS开发
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
482 0