英文:
Can GlassFish server 5.1 be started with JDK15?
问题
我正在使用Apache NetBeans IDE 12.0来创建Maven Web Application项目模板。我还下载了JDK-15和带有Java EE 8 web的GlassFish服务器版本5.1。
我正在编写我的JSF代码,但是当我运行页面时,它显示GlassFish服务器无法在JDK-15(默认)下启动。请选择另一个Java SE平台。
你能帮我解决这个问题吗?
英文:
I am working with Apache NetBeans IDE 12.0 to create Maven Web Application project template. I also downloaded JDK-15 and Glassfish server version 5.1 with Java EE 8 web.
I am writing my JSF code but when I run the page it shows that GlassFish server could not be started with JDK-15(default).Please select another jave SE platform.
Could you please help me to solve this problem ?
答案1
得分: 4
你需要从此网站下载Java SE Development Kit 8u271:
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html。然后安装它,并像您使用jdk15时那样设置环境变量。然后尝试运行您的程序,当您看到消息“请选择另一个Java SE平台”时,请选择新的jdk。这对我有效。
英文:
You have to download Java SE Development Kit 8u271 from this site :
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html. Then install it and set the enviromental variables as you do with jdk15. Then try to run your program and when you see the message "Please select another jave SE platform" choose the new jdk.
It work for me.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论