While running the command scala -version
, it results in the error message
Error: Java executable not found ()
Already installed jdk-23
java -version java version
"23.0.2" 2025-01-21 Java(TM) SE Runtime Environment (build 23.0.2+7-58) Java HotSpot(TM) 64-Bit Server VM (build 23.0.2+7-58, mixed mode, sharing)
Tried the Scala installer for windows on / (Probably didn't work)
Then tried installing Scala through chocolatey
choco install scala --version=3.6.3
(worked)
Then run Scala -v and received the error.
I'm running win64 bit architecture.
While running the command scala -version
, it results in the error message
Error: Java executable not found ()
Already installed jdk-23
java -version java version
"23.0.2" 2025-01-21 Java(TM) SE Runtime Environment (build 23.0.2+7-58) Java HotSpot(TM) 64-Bit Server VM (build 23.0.2+7-58, mixed mode, sharing)
Tried the Scala installer for windows on https://www.scala-lang.org/download/ (Probably didn't work)
Then tried installing Scala through chocolatey
choco install scala --version=3.6.3
(worked)
Then run Scala -v and received the error.
I'm running win64 bit architecture.
I got the same error, but when I set my %JAVA_HOME%
environment variable to C:\Program Files\Java\jdk-23
, this fixed the problem (after restarting my command line).