Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15635

start ignite with JDK17

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Patch
    • Docs Required, Release Notes Required

    Description

      the JVM flag --illegal-access is removed since JDK17, so the scripts under bin folder need more --add-opens flag. I revised bin/ignite.sh a bit to launch ignite with JDK17 successfully

      elif [ $version -ge 17 ] ; then
          JVM_OPTS="\
              --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
              --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
              --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
              --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
              --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
              --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED \
              --add-opens java.base/java.nio=ALL-UNNAMED \
              --add-opens java.base/java.util=ALL-UNNAMED \
              --add-opens java.base/java.lang=ALL-UNNAMED \
              ${JVM_OPTS}"
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ffang Freeman Yue Fang
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m