我已经从jdk1.6(32)升级到jdk1.8(64),Netbeans从6. *升级到8. *。 配置设置并成功更新project.jar文件。很少有外部罐子被采用,如下所示:
file.reference.bcmail-jdk16-136.jar
file.reference.bcprov-jdk16-136.jar
file.reference.jcommon-1.0.10.jar
file.reference.jdepend.jar
file.reference.jfreechart-1.0.9.jar
file.reference.log4j-1.2.14.jar
file.reference.registry.jar
file.reference.swingx.jar
file.reference.jshrink.jar
现在,我准备了来自inno setup和部署exe的app.exe,当我尝试运行exe时,我收到以下错误弹出消息:“发生了JNI错误,请检查您的安装并再试一次”
当尝试从命令提示符运行时,我得到了以下stacktrace: C:\ Users \ 100755224> java -jar C:\ Dev_TSOFT \ Sources \ installer \ tsoft \ TSOFT.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 118
Exception Details:
Location:
com/alstom/tsoft/Main.<init>([Ljava/lang/String;)V @56: ifeq
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 2ab7 0002 2a11 7d91 b500 032a 1204 b500
0x0000010: 052a bb00 0659 2ab7 0007 b500 082a bb00
0x0000020: 0959 117d 9112 042a b400 08b7 000b b500
0x0000030: 0c2a b400 0cb6 000d 9900 3eb8 000e b800
0x0000040: 0fa7 0004 4d04 b800 112b be04 a000 142a
0x0000050: bb00 1259 2b03 32b7 0013 b500 01a7 000e
0x0000060: 2abb 0012 59b7 0014 b500 012a b400 01b6
0x0000070: 0015 04b6 0016 b1
Exception Handler Table:
bci [59, 65] => handler: 68
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
我已将库和源JDK版本设置为jdk8。请建议,这是我4天以来的工作限制。
提前致谢
答案 0 :(得分:0)
我开始知道问题所在,
inno setup使用旧的jre,即1.6,我需要更新那个jre。 现在的问题是如何更新inno setup jre文件?
如果有人知道,请告诉我。
由于