An unsupported Java version How to get rid of errors

This is a Java version error that appears when I install Salesforce Apex Extension in Visual Studio Code, but it didn't hurt anything, so I left it for a long time. However, I thought it would be awkward if I jumped out during the webinar recently, so I decided to take the initiative to resolve it. This time, I will introduce how to do it. Screen Shot 2020-05-21 at 13.35.40.png

Details of the error

The error message is as follows, with a message telling you to use Java 8 or 11, along with a link to how to configure it.

An unsupported Java version was detected. Download and install Java 8orJava11toruntheextensions.Formoreinformation,seeSetYourJavaVersion.

Screen Shot 2020-05-21 at 10.14.48.png

Download and install Java 11

Setting method (English) page introduces the setting method with the following four JDKs. So, choose the one that suits your environment.

In my case, I chose Zulu, which was taught by seniors in the Salesforce community. Salesforce's data loader also Specifies Zulu OpenJDK version 11 as a system requirement, so I'll match it.

VS Code settings

After that, follow the instructions on the Setting method (English) page and add the following description to the VS Code configuration file. Append.

setting.json


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

With this, you should be able to get rid of the error.

Recommended Posts

An unsupported Java version How to get rid of errors
How to get the length of an audio file in java
[Java] How to get the authority of the folder
How to lower java version
[Java] How to get the URL of the transition source
[Java] How to get the maximum value of HashMap
As of April 2018 How to get Java 8 on Mac
How to use Java HttpClient (Get)
[Swift5] How to get an array and the complement of arrays
[java] Summary of how to handle char
[Java] How to get the current directory
[Java] [Maven3] Summary of how to use Maven3
How to install the legacy version [Java]
How to get the date in java
How to build an environment for any version of Ruby using rbenv
[Java] [ibatis] How to get records of 1-to-N relationship with List <Map <>>
How to find out the Java version of a compiled class file
[Java] How to get to the front of a specific string using the String class
How to get the value after "_" in Windows batch like Java -version
How to get the absolute path of a directory running in Java
[For Rails beginners] Summary of how to use RSpec (get an overview)
[java] Summary of how to handle character strings
[Java] How to get and output standard input
[Java] Summary of how to abbreviate lambda expressions
How to get Class from Element in Java
How to get today's day of the week
[Java] How to get random numbers excluding specific numbers
How to get and study java SE8 Gold
How to solve an Expression Problem in Java
[Java] How to get the redirected final URL
[Swift] How to get the number of elements in an array (super basic)
[Java] How to convert one element of a String type array to an Int type
[Rails] How to get rid of flash messages in a certain amount of time
[Java] How to easily get the longest character string of ArrayList using stream
How to get an arbitrary digit from a number of 2 or more digits! !!
[Java] How to use compareTo method of Date class
How to write Scala from the perspective of Java
[Java] Types of comments and how to write them
[Java] How to get a request by HTTP communication
Summary of Java communication API (1) How to use Socket
[Android] How to get the setting language of the terminal
Summary of Java communication API (3) How to use SocketChannel
Summary of Java communication API (2) How to use HttpUrlConnection
[Rails] How to get the contents of strong parameters
Summary of how to implement default arguments in Java
How to download the old version of Apache Tomcat
[Swift] How to get the document ID of Firebase
How to execute WebCamCapture sample of NyARToolkit for Java
How to get the class name of the argument of LoggerFactory.getLogger when using SLF4J in Java
[Java] How to use Map
About an instance of java
[Java] How to use Map
How to uninstall Java 8 (Mac)
How to use trained model of tensorflow2.0 with Kotlin / Java
Java --How to make JTable
Get to the abbreviations from 5 examples of iterating Java lists
How to use java Optional
How to minimize Java images
How to write java comments
Comparison of how to write Callback function (Java, JavaScript, Ruby)
How to use java class