microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.6k stars 29.03k forks source link

Unable to activate the Apex Language Server - Unsupported Java version #197655

Closed LNRSF closed 11 months ago

LNRSF commented 11 months ago

Type: Bug

Hi Team,

I am using Java 8u391(64 bit version), Visual Studio is not supported this and I am getting this error "Unable to activate the Apex Language Server - Unsupported Java version".

VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 PRO 4650U with Radeon Graphics (12 x 2096)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.23GB (4.73GB free)| |Process Argv|--crash-reporter-id 39b65b0e-b3b4-4123-9541-aaea2956bf22| |Screen Reader|no| |VM|0%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- salesforce-soql-editor|all|1.8.0 apex-pmd|chu|0.6.2 vscode-eslint|dba|2.4.2 prettier-vscode|esb|10.1.0 lana|Fin|1.10.1 vscode-pull-request-github|Git|0.76.0 vscode-xml|red|0.26.1 LiveServer|rit|5.7.9 salesforce-vscode-slds|sal|1.4.8 salesforcedx-vscode|sal|59.3.1 salesforcedx-vscode-apex|sal|59.3.1 salesforcedx-vscode-core|sal|59.3.1 salesforcedx-vscode-expanded|sal|59.3.1 salesforcedx-vscode-lightning|sal|59.3.1 salesforcedx-vscode-lwc|sal|59.3.1 salesforcedx-vscode-soql|sal|59.3.1 sfdx-package-xml-generator|Vig|2.0.10
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30880072 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 f6dab269:30613381 vscrpc:30673769 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30871695 pythonregdiag2:30871582 pythonmypyd1:30879173 pythoncet0:30874138 pythontbext0:30879054 dsvsc018:30880894 aa_t_chat:30882232 ```
vscodenpa commented 11 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.84.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

gjsjohnmurray commented 11 months ago

/causedByExtension

vscodenpa commented 11 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!