GlassFish服务器5.1能够使用JDK15启动吗?

huangapple go评论64阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年10月4日 13:09:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/64191384.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定