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:"

    XMLWordPrintable

Details

    Description

      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

      Attachments

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

        Issue Links

          Activity

            People

              xzhang@atlassian.com Chandler Zhang
              jbennett@atlassian.com J van Leeuwen
              Votes:
              3 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: