diff --git a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/wizards/ServerWizardIterator.java b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/wizards/ServerWizardIterator.java index 604b2e895e8a..c48b8f186c4e 100644 --- a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/wizards/ServerWizardIterator.java +++ b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/wizards/ServerWizardIterator.java @@ -337,7 +337,17 @@ ServerDetails isValidInstall(File installDir, File glassfishDir, WizardDescripto wizard.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, errMsg); // getSanitizedPath(installDir))); File jar = ServerUtilities.getJarName(glassfishDir.getAbsolutePath(), ServerUtilities.GFV3_JAR_MATCHER); if (jar == null || !jar.exists()) { - return null; + // GlassFish 8 no longer ships a versioned modules/glassfish*.jar; the + // bootstrap jar lives at lib/bootstrap/glassfish.jar in every + // distribution (both the full and the web profile). Accept that as + // proof of a GlassFish install while staying backward compatible with + // GlassFish 3-7. The actual version is still resolved further below + // through ServerUtils.getServerVersion() (modules/common-util.jar). + File bootstrapJar = new File(glassfishDir, + "lib" + File.separator + "bootstrap" + File.separator + "glassfish.jar"); // NOI18N + if (!bootstrapJar.exists()) { + return null; + } } File containerRef = new File(glassfishDir, "config" + File.separator + "glassfish.container");