0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VS CodeのJava 設定

Last updated at Posted at 2023-10-18

Unsupported Java version

Please check this article.

Fix the unsupported Java version error in VS Code
https://www.youtube.com/watch?v=BwBNsLBpnVs

Unsupported Java version

Which JDK are you using?
If you use zulu-11, please configure as follows

setting.json

{  "salesforcedx-vscode-apex.java.home": "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"}
Java Setup

https://developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup

I have checked Java:Home and PATH envoronment variables are correct. パスは正しい

Windows registry was found corrupted. After changing to a different laptop, this issue vanished.

Java 8 is required to run. Download and install it from https://java.com/en/download/.

image.png

I had this same problem. It took a while to get a solution.

This is how I finally resolved the problem for Windows.

I had multiple version of java installed. I uninstalled them all. Restart the PC.

Visit https://www.oracle.com/uk/java/technologies/javase/jdk11-archive-downloads.html and download the most recent version of Java 11

Get your java filepath. Mine looks like this C:\Program Files\Java\jdk-11.0.14. you only need to go as far as the Jdk-verion folder.

Go to Control Panel and search Environment Variables. Click on Edit the Sytem Environment variables > Environment Variables

In the System variables list. Make sure the JAVA_HOME is the same path ie C:\Program Files\Java\jdk-11.0.14. Click OK.

Now go to VS Code. File>Preferences>Settings ===> Seach apex. Paste the same path "C:\Program Files\Java\jdk-11.0.14" into "Salesforcedx-vscode-apex › Java: Home" text box field.

https://developer.salesforce.com/forums/?id=9060G0000005SSnQAM

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?