We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33105d3 commit bb3d7f3Copy full SHA for bb3d7f3
src/impl/requirements.ts
@@ -101,6 +101,9 @@ async function checkJavaRuntime(): Promise<string | RspRequirementsRejection> {
101
if (!pathExists.sync(javaHome)) {
102
return getRejectionWithDownloadUrl(`${source} points to a missing folder`);
103
}
104
+ if (!pathExists.sync(path.resolve(javaHome, 'bin', JAVA_FILENAME))) {
105
+ return getRejectionWithDownloadUrl(`${source} does not point to a JDK. The '${JAVA_FILENAME}' command is missing.`);
106
+ }
107
if (!pathExists.sync(path.resolve(javaHome, 'bin', JAVAC_FILENAME))) {
108
return getRejectionWithDownloadUrl(`${source} does not point to a JDK. The '${JAVAC_FILENAME}' command is missing.`);
109
0 commit comments