microsoft / vscode

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

Unable to authorize the Salesforce Org and getting Java pacakge error #219678

Closed VinayKumar-cx closed 3 months ago

VinayKumar-cx commented 3 months ago

Type: Bug

When I try to autherize the Salesforce Org I am getting the below error and the Org is not setting. Error Message: Unable to activate the Apex Language Server - Running java command C:\Program Files\Common Files\Oracle\Java\bin\java -XshowSettings:properties -version failed with error: spawn C:\Program Files\Common Files\Oracle\Java\bin\java ENOENT

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.88GB (1.13GB free)| |Process Argv|--crash-reporter-id f63f5fc3-106c-47b8-b7d1-8013cbfe9dfc| |Screen Reader|no| |VM|0%|
Extensions (11) Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|3.0.10 salesforce-vscode-slds|sal|1.4.10 salesforcedx-vscode|sal|61.2.1 salesforcedx-vscode-apex|sal|61.2.1 salesforcedx-vscode-apex-debugger|sal|61.2.1 salesforcedx-vscode-apex-replay-debugger|sal|61.2.1 salesforcedx-vscode-core|sal|61.2.1 salesforcedx-vscode-lightning|sal|61.2.1 salesforcedx-vscode-lwc|sal|61.2.1 salesforcedx-vscode-soql|sal|61.2.1 salesforcedx-vscode-visualforce|sal|61.2.1
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 945dj816:31013170 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 legacy_priority:31082724 ```
TylerLeonhardt commented 3 months ago

I think you'll want to open an issue here: https://github.com/forcedotcom/salesforcedx-vscode

vscodenpa commented 3 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!