'config.bat' Cannot Locate Java on Windows

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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.

Last modified on Jan 3, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.