"The JAVA_HOME environment variable is not defined correctly"
adammpolak opened this issue · comments
Issue
Short description
When trying to run install-service.bat
this appears:
Processor Architecture: "AMD64"
Using Daemon: "C:\Users\adamm\dev\red5-server\\amd64\prunsrv.exe"
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Environment
[] Operating system and version: Windows 11
[] Java version: 19
[] Red5 version: 1.3.12
Expected behavior
Should be able to run the installer
@adammpolak your JAVA_HOME should be defined in the system / os where the service launch can access it.
@adammpolak your JAVA_HOME should be defined in the system / os where the service launch can access it.
I was able to echo that it was set, yet the issue still occurs :(
@adammpolak The message actually says that JAVA_HOME
is defined, but the server detects it as a JRE, not a JDK. That should be verified and if its correct, install a JDK and update the JAVA_HOME
to point to it instead.
是jdk版本的问题吗
I believe there are more than enough tutorials to be found showing how to set up environmental variables on every operating system where the JDK can execute. Belaboring it here is a bit more than I want to support.