Skip to content

Commit

Permalink
Allow use of Java 11 (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampos authored and praksb committed Apr 29, 2019
1 parent 2a814ad commit c538b6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/salesforcedx-vscode-apex/src/requirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ function checkJavaVersion(javaHome: string): Promise<any> {
['-version'],
{},
(error, stdout, stderr) => {
if (stderr.indexOf('1.8') < 0) {
if (
stderr.indexOf('build 1.8') < 0 &&
stderr.indexOf('build 11.') < 0
) {
reject(nls.localize('wrong_java_version_text', SET_JAVA_DOC_LINK));
} else {
resolve(true);
Expand Down

0 comments on commit c538b6f

Please sign in to comment.