Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start Glassfish in Netbeans 10 with JDK11

I am trying to configure everything to develop a web application, but I am not expert about that and I am having problems to start Glassfish.

I installed Netbeans 10, JDK11 and Glassfish 5, but when I try to execute a basic "Hello World!", it returns an error saying "Glassfish server could not be started with JDK11. Please select another Java SE Platform".

Maybe, am I forgettig install something more?

like image 538
Jose Antonio Avatar asked Apr 01 '19 04:04

Jose Antonio


1 Answers

Only the glassfish server no longer supports the java 11 platform

Therefore,the first you need to install java platform 8: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Then you install it.

Back to Netbean, go to Tools>>Java Platforms>>JDK 1.8

If you have JDK 1.8. you can run your project with JDK 1.8

like image 193
Hai Quan Le Avatar answered Oct 20 '22 02:10

Hai Quan Le