'config.bat' Cannot Locate Java on Windows
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Running the config.bat
script in fails due to the fact that it cannot locate Java.
Cause
The config.bat
scripts requires access to the Java JDK, therefore the JAVA_HOME environment variable needs to be configured before it can be run.
Resolution
Create a new environment variable in Windows for JAVA_HOME to find the Java JDK. See Installing Java.
Was this helpful?