Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Glassfish 5 run with java 10 or is it only compatible with java 8?

Tags:

java

glassfish

getting error when installing Glassfish 5. I have jdk-10.0.2, now I want to know if this is because there is no compatibility between them.

Am running "asadmin start-domain" and then am getting this error:

Exception in thread "main" java.lang.NullPointerException
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.ini
tializeServiceLocator(AbstractModulesRegistryImpl.java:152)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.new
ServiceLocator(AbstractModulesRegistryImpl.java:144)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
ateServiceLocator(AbstractModulesRegistryImpl.java:218)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
ateServiceLocator(AbstractModulesRegistryImpl.java:224)
        at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceL
ocator(StaticModulesRegistry.java:88)
        at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContai
ner.java:217)
        at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContaine
r.java:255)
        at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:23
1)
        at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:
371)
        at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
        at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)

Thanks for you guide in anticipation
like image 752
Premium Ayodele Avatar asked Sep 19 '18 17:09

Premium Ayodele


People also ask

Which JDK is compatible with GlassFish 5?

Required JDK Versions GlassFish Server Open Source Edition Release 5.0 requires Oracle JDK 8 Update 144 or later.

Does GlassFish support JDK 11?

Download links are available from the GlassFish Download page. Eclipse GlassFish 6.1 implements the Jakarta EE 9.1 specification (Jakarta EE 9.1 Platform, Jakarta EE 9 Web Profile). Note this release requires JDK 11.

Do I need Java 8 or 11?

There are several reasons why one should upgrade from Java 8 to Java 11. Applications written in Java 9, 10, and 11 are significantly faster and more secure than previous versions of the language. ZGC and Epsilon garbage collectors have improved Garbage Collection.

Does GlassFish work with JDK 16?

"GlassFish 5.1 requires Oracle JDK 8 Update 144 or later."


2 Answers

At the moment GlassFish 5 is not compatible with JDK 9 nor 10. The support for JDK 9 will come with the next update as stated at end of https://blogs.oracle.com/theaquarium/java-ee-8-is-final-and-glassfish-50-is-released

like image 56
Guillem Castro Avatar answered Sep 23 '22 16:09

Guillem Castro


Glassfish has moved to Eclipse: https://projects.eclipse.org/projects/ee4j.glassfish/downloads

It is also Eclipse that Oracle "sold" javaEE to.

But it is still not supporting JDK 9+

Edit: Glassfish 6.0 is out - but it is still only supporting JDK 8

Edit: Glassfish 6.1 is out - and it is now supporting JDK 11

like image 28
Rene Larsen Avatar answered Sep 23 '22 16:09

Rene Larsen