Windows server 2022
I have tried installing JRE24 and Java 8. It doesn't let me save the JAVA_HOME path.
Throw below error:-
FileNotFoundError: [WinError 2] The system cannot find the file specified validate java command: java.
Any help would be appreciated!!!!
Again - you are setting wrong path. Your JAVA_PATH should be c:\program files\java\jre_version
That's it. No \bin, no java.exe, no nothing. Just the base directory of your Java installation.
Thanks for the response.
I actually installed both Java 21 and 24 but no luck.
JRE path as C:\Program Files (x86)\Common Files\Oracle\Java\java8path\java.exe
Upon putting above path and click on save. Upon returning to the same page, the path is gone.
Error remains there,
FileNotFoundError: [WinError 2] The system cannot find the file specified validate java command: java.
You "have tried" to install JRE or did you install it?
The manual explicitly lists Java 17 and 21. It doesn't list 24 so it might work but is not officially supported.
And on Windows I'd defintiely go for
Option 3: Set JRE installation directory in Configuration > Settings > JRE Installation Path.
Hi @Gagandeep
In addition to what @PickleRick mentioned about version number - I believe you need to enter a path to JAVA_HOME not to the java.exe file.
I *think* the JAVA_HOME path for your install would be C:\Program Files (x86)\Common Files\Oracle\Java\java8path
but it could be 1 directory higher. Please try adjusting this and let us know how you get on.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
It's still not working. Here are the screenshots.
Note :- Upon adding the above JAVA_HOME path, it doesn't show any notification if saved or not. Upon refreshing the page, the path is no longer there.
Created new JAVA_HOME under Environment Variables but no luck.
Again - you are setting wrong path. Your JAVA_PATH should be c:\program files\java\jre_version
That's it. No \bin, no java.exe, no nothing. Just the base directory of your Java installation.
I am able to get it worked now.
Uninstalled java and installed JRE 17. During install allow JAVA_HOME path and used the same path under Configuration > Settings.
Thanks for sharing valuable inputs which made me try couple of different options.
Appreciated!!!!
Yup. JAVA_HOME should be the base dir of Java installation.
See https://docs.oracle.com/cd/E19182-01/821-0917/inst_jdk_javahome_t/index.html for example