我们的项目使用用 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 可以配置一个外部jdk来进行cscript编译。从 install4j 7.0.7 开始支持 Java-10 和 Java-11。
关于java - 如何更改install4j 7.0.11 IDE的jdk?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58991212/