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

karaf.bat still uses endorsed dirs with Java 9 install

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0.M2
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Running on Windows 10 Enterprise v 1703

      java version "9.0.4"
      Java(TM) SE Runtime Environment (build 9.0.4+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

      Description

      karaf.bat does appear to recognise my Java 9, and still attempts to execute with endorsed dirs, resulting in this error message:

      -Djava.endorsed.dirs=C:\Program Files\Java\jre-9.0.4\jre\lib\endorsed;C:\Program Files\Java\jre-9.0.4\lib\endorsed;C:\Users\D Otasek\Desktop\cytoscape-windows-3.7.0-SNAPSHOT\framework\bin\..\lib\endorsed is not supported. Endorsed standards and standalone APIs
      in modular form will be supported via the concept of upgradeable modules.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

        Attachments

        1. karaf.bat
          16 kB
          David Otasek

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                dotasek David Otasek
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: