idea开发JavaFx,Scene Builder已经配置好了,但使用Scene Builder打开fxml文件报错:
java.lang.UnsupportedClassVersionError: org/jetbrains/plugins/javaFX/sceneBuilder/SceneBuilderImpl has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
大致原因是,运行idea的jdk是1.8版本的,需要切换到11版本。
解决方法:
双击shift键(或 Help -- Find Action),输入choose Runtime(如果没有这个选项,需要先去plugin中下个搜索并下载这个插件)。
然后选择一个java11对应的版本。
重启就能在idea中使用scene builder打开。
439



被折叠的 条评论
为什么被折叠?



