How to switch from the bundled JRE to System Java when using Confluence as Windows Service

Still need help?

The Atlassian Community is here for you.

Ask the community

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

When deploying Confluence using .exe installer, it will come with a bundled JRE (JAVA). Sometimes, in order to upgrade the JAVA version, Confluence needs to switch from bundled JRE to user installed JAVA.

Step-by-step guide

  1. Install JAVA in your machine (see Installing Java for Confluence)
  2. Stop Confluence

  3. Identify the name of the service that Confluence is installed as in Windows (Go to Control Panel > Administrative Tools > Services):

    (info) In the above example, the service name is Confluence121213135538
  4. Open the command window (Choose Start > cmd.exe
  5. cd to the bin directory of your Confluence instance (or the bin directory of your Tomcat installation if you are running Confluence EAR/WAR).
  6. Run the following command for Confluence 5.8:


    tomcat8w //ES//<SERVICENAME>


    (info) In the above example, it would be tomcat8w //ES//Confluence121213135538
    The Tomcat version number may be different if you are using an earlier version of Confluence. 

  7. Click on the Java tab to see the list of current start-up options:
  8. Uncheck the 'Use default'
  9. Modify the 'Java Virtual Machine' to point at the jvm.dll of the installed JAVA in Step 1
    (e.g. Java Virtual Machine: C:\Program Files (x86)\Java\jdk1.8.0_66\jre\bin\server\jvm.dll or C:\Program Files (x86)\Java\jre1.8.0_66\bin\client\jvm.dll)
  10. Click 'OK'
  11. Start Confluence

There is no content with the specified labels


Last modified on Dec 20, 2024

Was this helpful?

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