Hello, I am using TypeScript-3.9.7, SonarLint plugin - v1.18.0 for Visual Studio Code - 1.50.1,durning analysis started to see
[stderr] Exception in thread “SonarLint analysis”
[stderr] java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext
This error may be caused by the JRE that is used to run the SonarLint Language Server. Can you find the exact version that is used? When starting VSCode, this should be the first line in the SonarLint Output if verbose output is enabled.
Something like:
Thanks, I will try to reproduce with the same JDK.
In the meantime you can try downloading a “regular JDK” (like AdoptOpenJdk), or even a more recent version of SapMachineJdk,
unzip it somewhere, and then tell SonarLint to use it by changing the VSCode setting sonarlint.ls.javaHome.
I was not able to reproduce (on Linux) so either this is specific to Windows, or the problem is caused by a modification of your JDK (maybe some custom SSL parameters).
As I suggested in my previous message, please try with a clean JDK freshly downloaded from AdoptOpenJdk, and let us know how it goes.