How to switch from the bundled JRE to System Java when using Confluence as Windows Service
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.
- Install JAVA in your machine (see Installing Java for Confluence)
- Identify the name of the service that Confluence is installed as in Windows (Go to Control Panel > Administrative Tools > Services):
In the above example, the service name is Confluence121213135538.
- Open the command window (Choose Start > cmd.exe)
bindirectory of your Confluence instance (or the
bindirectory of your Tomcat installation if you are running Confluence EAR/WAR).
Run the following command for Confluence 5.8:
In the above example, it would be
The Tomcat version number may be different if you are using an earlier version of Confluence.
- Click on the
Javatab to see the list of current start-up options:
- Uncheck the 'Use default'
- Modify the 'Java Virtual Machine' to point at the
jvm.dllof the installed JAVA in Step 1
(e.g. Java Virtual Machine:
C:\Program Files (x86)\Java\jdk1.8.0_66\jre\bin\server\jvm.dllor
C:\Program Files (x86)\Java\jre1.8.0_66\bin\client\jvm.dll)
- Click 'OK'
- Start Confluence
There is no content with the specified labels
Was this helpful?Yes Provide feedback about this article