-
Notifications
You must be signed in to change notification settings - Fork 406
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
An unsupported Java version was detected. Java 17. Oracle OpenJDK #5358
Comments
Hi @Blackbackroom, |
Hi @daphne-sfdc I closed and opened the settings window, did the same with the VS Code itself. And nothing. The error persists. |
@Blackbackroom It appears the values we use to check in parsing the results of the Is your from an Oracle install? |
@peternhale I requested to install Oracle OpenJDK 17. I can not quickly switch to a different version of Java. TBH, to set the current version of JAVA_HOME was challenging. |
@Blackbackroom What I am seeing is a slight difference between how Oracle release of OpenJdk 17 is displaying version vs what we typically see. We use
In the results we are looking for the string If you would run This new command line option was introduced in java 9. I will see if this approach would provide a more reliable way of determining java version. |
|
This issue has been linked to a new work item: W-14888195 |
@Blackbackroom I logged a bug. |
Closing this issue as the PR has been merged and released in v59.16.0. |
@Blackbackroom Can you please verify the fix on your end and let us know if this has resolved the issue? |
Hi @diyer Thank you |
Thanks to @peternhale for fixing this!! |
I have installed Java 17 on a laptop, Java Home is set but I still receive "An unsupported Java version was detected." message.
OS Details:
Edition Windows 11 Enterprise
Version 21H2
Installed on 10/27/2023
OS build 22000.2652
Experience Windows Feature Experience Pack 1000.22001.1000.0
I set Java Home and have updated Path variable.
In the VS Code Apex extension settings I tried to set up Java Home there in a different ways:
in settings
In settings.json file it was represented with double backslashes.
Even if I remove this setting or leave it empty, the Apex extension doesn't use the one set in path or JAVA_HOME
The installed java is Oracle OpenJDK(x64)_17.0_L_EN_01.
The laptop belongs to a company, so I can not install everything without bureaucracy and chain of approvals.
Apex extension version v59.13.0
VS Code version 1.85.2
The text was updated successfully, but these errors were encountered: