Hello, thank you for you reply. I didn’t mean JAVA_PATH but JAVA_HOME, apologies.
I run these on my windows PC:
echo %PATH%
C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH;C:\Users\Yakov\AppData\Roaming\daml\bin;C:\Users\Yakov\AppData\Local\Microsoft\WindowsApps;C:\Users\Yakov\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe;
Then I run echo %JAVA_HOME%:
C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe
I also run where java:
C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe
This is what I’m getting:
damlc: ScenarioServiceException “Failed to run java: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe\bin\java: readCreateProcessWithExitCode: does not exist (No such file or directory)”
[Info - 06:20:14] Connection to server got closed. Server will restart.
damlc: ScenarioServiceException “Failed to run java: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe\bin\java: readCreateProcessWithExitCode: does not exist (No such file or directory)”
[Info - 06:20:18] Connection to server got closed. Server will restart.
damlc: ScenarioServiceException “Failed to run java: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe\bin\java: readCreateProcessWithExitCode: does not exist (No such file or directory)”
[Info - 06:20:23] Connection to server got closed. Server will restart.
damlc: ScenarioServiceException “Failed to run java: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe\bin\java: readCreateProcessWithExitCode: does not exist (No such file or directory)”
[Info - 06:20:25] Connection to server got closed. Server will restart.
damlc: ScenarioServiceException “Failed to run java: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe\bin\java: readCreateProcessWithExitCode: does not exist (No such file or directory)”
[Error - 06:20:28] Connection to server got closed. Server will not be restarted.
I have tried everything at this point - reinstalling JDK, daml sdk, VS Code, Changing JAVA_HOME to a different location etc, nothing worked.
I have tried running daml from command prompt various times but it doesn’t let me.