我们的项目使用通过java11编译的帮助程序类,该类在安装程序脚本中使用。运行调试安装程序时,我收到如下消息:
java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
所以我认为我必须将ide的jdk更改为java11,但是我该怎么做?
好吧我自己在install4j帮助中找到它:https://www.ej-technologies.com/resources/install4j/help/doc/concepts/scripts.html可以配置用于cscript编译的外部jdk。由于install4j 7.0.7支持Java-10和Java-11。