Error in running apex code in vs code studio

35 Views Asked by At

I'm facing issue while trying to run Apex code in vs code studio, i have installed the jdk 17 set the path check on cmd as well, everything seems fine still in vs code i'm getting this error "Running java command C:\Program Files\Java\jdk-17\bin\bin\java -XshowSettings:prop:

Unable to activate the Apex Language Server - Running java command C:\Program Files\Java\jdk-17\bin\bin\java -XshowSettings:properties -version failed with error: spawn C:\Program Files\Java\jdk-17\bin\bin\java ENOENT

can someone please guide me? Thank you.

I tried reinstallation but still no luck.

1

There are 1 best solutions below

0
aled On

C:\Program Files\Java\jdk-17\bin\bin\java the path is incorrect, note that there are two bin subdirectories in it.