Which version of Openjdk must be use when using sonarlint and vscode

Currently i am facing error when using sonarlint in vscode.
Below are the information:
local java version installed: java 11
sonarlint version: 3.21.0
VS code version: 1.82.1 (user setup)

Please tell me if the version of jdk affects the connection of sonarlint in vscode.


`Error - 10:19:42.410] org.apache.hc.client5.http.HttpHostConnectException: Connect to https://xxxx.cloud:443 [xxxx.cloud/, xxxxx.cloud/] failed: Connection timed out: no further information
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source)
	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
	at org.apache.hc.core5.reactor.InternalConnectChannel.onIOEvent(InternalConnectChannel.java:64)
	at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51)
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178)
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127)
	at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:86)
	at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
	at java.base/java.lang.Thread.run(Unknown Source)

[Debug - 10:19:42.410] Cannot connect to server event-stream, retrying in 240s`

Hello, thanks for your question.

The current version of SonarLint should run fine with a JDK 11.

Please note that by the end of 2023, SonarLint will require Java 17.

As far as I can tell, the version of the JDK used to run SonarLint should not affect the behavior of the connected mode.