Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39852

Confluence installation on Windows fails with an error "Could not use bundled JRE. Please send this log file to your software vendor:"

      Summary

      Installing Confluence 5.8.16 on Windows results in an error message "Could not use bundled JRE. Please send this log file to your software vendor:

      Log: C:\Users\Username\AppData\Local\Temp\i4j_nlog2"

      Environment

      • Windows 64-bit

      Notes

      i4j_log attached.

      Steps to Reproduce

      1. Download atlassian-confluence-5.8.16-x64 or atlassian-confluence-5.8.16-x32.
      2. Run the installer on a Windows system.

      Expected Results

      Installation completes successfully using the built-in JRE.

      Actual Results

      Error is presented on screen and the installation will not continue:

      "Could not use bundled JRE. Please send this log file to your software vendor: Log: C:\Users\Username\AppData\Local\Temp\i4j_nlog2"

      Following is found in the i4j_log:

      Setting PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
      ERROR: Could not get DLL-Handle.
      ERROR: Could not load functions
      ERROR: Could not load bundled JRE. Trying to find another JRE.
      LoadDLL (0, (null), 0)
      Searching for a JVM
      GetTempPath returned 37 (last error 3)
      make dir returned -1
      Testing location  (type Y)
      GetTempPath returned 37 (last error 183)
      make dir returned -1
      Testing location JAVA_HOME (type E)
      GetTempPath returned 37 (last error 203)
      make dir returned -1
      Testing location JDK_HOME (type E)
      Search sequence finished
      ERROR: No JVM found
      ERROR: Could not find another JRE.

      Workaround

      1. Download and install the appropriate JDK (1.8)
      2. Set the Java_Home Variable
      3. Re-run the installer

      If Confluence does not start, you may need to do the following steps below:

      If you did not choose to start Confluence as a Windows service:

      1. Go to <confluence_install>/bin
      2. Edit the file setenv.bat
      3. Modify the JRE_HOME path to point to the installed JDK. For example:
        JRE_HOME=C:\Program Files\Atlassian\Confluence\jre"

        replace with:

        "JRE_HOME=C:\Progra~1\Java\jdk1.8.0_65"
      4. Start Confluence

      If you choose to run Confluence as a service:

      1. Follow How to switch from the bundled JRE to System Java when using Confluence as Windows Service to update the JRE.
        The article refers to tomcat7w, however, this version of Confluence runs on tomcat8w. Replace tomcat7w with tomcat8w.
      2. Start Confluence

        1. i4j_nlog_2
          18 kB
        2. screenshot-1.png
          screenshot-1.png
          76 kB

            [CONFSERVER-39852] Confluence installation on Windows fails with an error "Could not use bundled JRE. Please send this log file to your software vendor:"

            rs1,

            It's definitely a pain-point for a first timer (or even a veteran) installing Confluence on Windows. Hopefully this bug report and work around will help those affected until the fixed installer can be released.

            Stephen Brannen | Confluence Support

            Branno (Inactive) added a comment - rs1 , It's definitely a pain-point for a first timer (or even a veteran) installing Confluence on Windows. Hopefully this bug report and work around will help those affected until the fixed installer can be released. Stephen Brannen | Confluence Support

            @mtran @sbrannen

            I just want to point out, that new (potential) customers, who download the current 5.8.16 Windows 64bit release will not be able to install Confluence unless they install a separate JRE before. I had to setup a new system this week & knew what to do because I read this issue thread & came about the error before when upgrading a test installation.

            It's pretty embarrassing & gives a bad experience for new customers.

            Just my 2c,

            Jan-Peter

            Jan-Peter Rusch added a comment - @mtran @sbrannen I just want to point out, that new (potential) customers, who download the current 5.8.16 Windows 64bit release will not be able to install Confluence unless they install a separate JRE before . I had to setup a new system this week & knew what to do because I read this issue thread & came about the error before when upgrading a test installation. It's pretty embarrassing & gives a bad experience for new customers. Just my 2c, Jan-Peter

            Minh Tran added a comment -

            Dear All,

            Thanks for raising this issue.
            Just for your information, we fixed the bundling problem with JRE
            The fix will be scheduled on 5.8.17

            Regards,
            Minh Tran
            Confluence Bugmaster
            Atlassian

            Minh Tran added a comment - Dear All, Thanks for raising this issue. Just for your information, we fixed the bundling problem with JRE The fix will be scheduled on 5.8.17 Regards, Minh Tran Confluence Bugmaster Atlassian

            jkim10,

            The fix for the installer bug will be included in 5.8.17 when it is released (this has not been released yet however).

            In regards to using a separate JRE/JDK vs a bundled JRE, we do still bundle a JRE with Confluence when using the installer (for either Windows or Linux). If you were to install Confluence 5.8.16 in Windows, you would notice that there are no errors during installation and there is a jre folder in the <confluence-install> folder.

            Regards,
            Stephen Brannen | Confluence Support

            Branno (Inactive) added a comment - jkim10 , The fix for the installer bug will be included in 5.8.17 when it is released (this has not been released yet however). In regards to using a separate JRE/JDK vs a bundled JRE, we do still bundle a JRE with Confluence when using the installer (for either Windows or Linux). If you were to install Confluence 5.8.16 in Windows, you would notice that there are no errors during installation and there is a jre folder in the <confluence-install> folder. Regards, Stephen Brannen | Confluence Support

            Jae Kim added a comment -

            Has this installer been fixed and updated already on the Downloads page? (as this ticket is now closed). I downloaded 5.8.16 yesterday and received the same error message.

            Also, is there a reason for having a separate JRE install now vs the one that is pre-bundled with Confluence within the Atlassian folder?

            Thank you

            Jae Kim added a comment - Has this installer been fixed and updated already on the Downloads page? (as this ticket is now closed). I downloaded 5.8.16 yesterday and received the same error message. Also, is there a reason for having a separate JRE install now vs the one that is pre-bundled with Confluence within the Atlassian folder? Thank you

            This was for testing purposes, as I stated in my deleted post, it still cost time and money regardless of the application.

            David Poprik added a comment - This was for testing purposes, as I stated in my deleted post, it still cost time and money regardless of the application.

            David,

            I suggest, as it is common knowledge, to TEST an upgrade on a test or staging environment first. You would have notice the error then. Anyway, the error should have been detected by Atlassian & and by us customers.

            Best regards,

            Jan-Peter

            Jan-Peter Rusch added a comment - David, I suggest, as it is common knowledge, to TEST an upgrade on a test or staging environment first. You would have notice the error then. Anyway, the error should have been detected by Atlassian & and by us customers. Best regards, Jan-Peter

            Marius,

            It is refreshing to note that Atlassian has staff on hand to moderate perceived slights or rude behavior rather than performing testing that would have uncovered this issue. Atlassian unleash such a broken installer on unsuspecting, paying, customers when it would have taken less time to determine this was not ready, than it took for my comments to be removed. Good to know that Atlassian priorities are right.

            Your failure to test had REAL WORLD CONSEQUENCES. It affected real people and cost companies money. Get it right next time and you won't have to worry about "Rude" customers.

            David Poprik added a comment - Marius, It is refreshing to note that Atlassian has staff on hand to moderate perceived slights or rude behavior rather than performing testing that would have uncovered this issue. Atlassian unleash such a broken installer on unsuspecting, paying, customers when it would have taken less time to determine this was not ready, than it took for my comments to be removed. Good to know that Atlassian priorities are right. Your failure to test had REAL WORLD CONSEQUENCES. It affected real people and cost companies money. Get it right next time and you won't have to worry about "Rude" customers.

            @Stefan Ernst / @Minh Tran
            This works when upgrading. A new installation cannot be started without installing a non-bundled JRE first.

            Jan-Peter Rusch added a comment - @Stefan Ernst / @Minh Tran This works when upgrading. A new installation cannot be started without installing a non-bundled JRE first.

            Minh Tran added a comment -

            Dear All,

            Thanks for submitting the ticket.
            Liket stefan.ernst pointed out, this is a problem with packaging process.
            We are fixing and verifying the installer again

            Please follow further update in this ticket

            Best regards,
            Minh Tran
            Confluence BugMaster
            Atlassian

            Minh Tran added a comment - Dear All, Thanks for submitting the ticket. Liket stefan.ernst pointed out, this is a problem with packaging process. We are fixing and verifying the installer again Please follow further update in this ticket Best regards, Minh Tran Confluence BugMaster Atlassian

              xzhang@atlassian.com Chandler Zhang
              jbennett@atlassian.com J van Leeuwen
              Affected customers:
              3 This affects my team
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: