Naveen M.S
Naveen M.S

Reputation: 21

Apache Ignite support for java 17

Does apache ignite 2.14.0 work with java 17?

Tried running a java 17 application which uses apache ignite 2.14.0 and this error occured: Error while running java 17 application using which uses apache 2.14.0

Upvotes: 1

Views: 3307

Answers (2)

Neil J
Neil J

Reputation: 399

Here's the spring-boot-maven-plugin JVM arguments configuration I'm using with Ignite & Java17.

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <jvmArguments>
            --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
            --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
            --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
            --add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
            --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
            --add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
            --add-opens=java.base/java.io=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
        </jvmArguments>
    </configuration>
</plugin>

Upvotes: 1

Pavel Tupitsyn
Pavel Tupitsyn

Reputation: 8986

Yes, it does. As the doc says, use the following JVM options:

--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-opens=java.base/java.io=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

Or, use ignite.sh / ignite.bat scripts, which do this for you.

Upvotes: 6

Related Questions