-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed when running GF 6.0.0.M1 with JDK 11 #23102
Comments
6.0.0".M1" release still work on JDK 8 (not JDK 11). |
I believe that the -Djava.endorsed.dirs options must be removed for running on JDK11 (glassfish6\glassfish/lib/endorsed jars could be added to the classpath if they are needed). Are there other changes needed for running on JDK11? |
@scottmarlow There are quite some changes needed indeed. Many concern replacing classes that have been removed and opening up modules to allow illegal access (actually, it would be even better to find replacements for illegal access, but for JDK 11 that will suffice). See here for some idea of what the JDK 11 work entails: #23019 |
thanks @arjantijms that gives me a better idea of what the work entails. |
Latest nightly builds all run with JDK 11. |
Environment Details
Problem Description
n>asadmin start-domain
Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
-Djava.endorsed.dirs=D:\appsvr\glassfish6\glassfish/modules/endorsed;D:\appsvr\glassfish6\glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
OpenJDK 64-Bit Client VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Command start-domain failed.
The text was updated successfully, but these errors were encountered: