Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1695

startup fails on Windows with only JRE installed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.8, 3.0.0
    • Fix Version/s: 2.3.0, 3.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP 32bit
      Oracle Java Runtime Environment 7u5

      Description

      It fails with the error:

      Error: missing `server' JVM at `C:\Program Files\Java\jre7\bin\server\jvm.dll'.
      Please install or use the JRE or JDK that contains these missing components.
      

      Possible workarounds:
      a) Install Oracle JDK
      b) modify the JAVA_OPTS:

      set JAVA_OPTS=-Xmx512M
      karaf.bat
      

      The startup-script should contain special handling for JRE on windows and fallback to "-client" of "-server" is not available.

        Attachments

        1. jre-windows-client.patch
          1 kB
          Christoph Gritschenberger

          Activity

            People

            • Assignee:
              pieber Andreas Pieber
              Reporter:
              christophg Christoph Gritschenberger
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: