Hi,
I have Java 24, as in the command
java - version, in cmd i got:
openjdk version "24.0.2" 2025-07-15
OpenJDK Runtime Environment Temurin-24.0.2+12 (build 24.0.2+12)
OpenJDK 64-Bit Server VM Temurin-24.0.2+12 (build 24.0.2+12, mixed mode, sharing)
Then I successfully used GraphWalker Studio and created the model in ".json" format.
But the problem is using cli:
java -jar graphwalker-cli-4.3.3.jar offline -m login.json "random(edge_coverage(100))"
the response is:
Exception in thread "main" java.lang.NoSuchMethodError: 'void sun.misc.Unsafe.ensureClassInitialized(java.lang.Class)'
at com.oracle.truffle.api.library.LibraryFactory.ensureLibraryInitialized(LibraryFactory.java:384)
at com.oracle.truffle.api.library.LibraryFactory.getUncached(LibraryFactory.java:364)
at com.oracle.truffle.api.library.LibraryFactory.<init>(LibraryFactory.java:210)
at com.oracle.truffle.api.interop.InteropLibraryGen.<init>(InteropLibraryGen.java:175)
at com.oracle.truffle.api.interop.InteropLibraryGen.<clinit>(InteropLibraryGen.java:166)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:543)
at com.oracle.truffle.api.library.LibraryFactory.loadGeneratedClass(LibraryFactory.java:791)
at com.oracle.truffle.api.library.LibraryFactory.resolveImpl(LibraryFactory.java:740)
at com.oracle.truffle.api.library.LibraryFactory.resolve(LibraryFactory.java:733)
at com.oracle.truffle.api.interop.InteropLibrary.<clinit>(InteropLibrary.java:2873)
at com.oracle.truffle.polyglot.PolyglotValueDispatch.<clinit>(PolyglotValueDispatch.java:156)
at com.oracle.truffle.polyglot.PolyglotImpl.initialize(PolyglotImpl.java:166)
at org.graalvm.polyglot.impl.AbstractPolyglotImpl.setConstructors(AbstractPolyglotImpl.java:271)
at org.graalvm.polyglot.Engine$1.loadAndValidateProviders(Engine.java:940)
at org.graalvm.polyglot.Engine$1.run(Engine.java:900)
at org.graalvm.polyglot.Engine$1.run(Engine.java:894)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:74)
at org.graalvm.polyglot.Engine.initEngineImpl(Engine.java:894)
at org.graalvm.polyglot.Engine$ImplHolder.<clinit>(Engine.java:139)
at org.graalvm.polyglot.Engine.getImpl(Engine.java:363)
at org.graalvm.polyglot.Engine$Builder.build(Engine.java:621)
at org.graalvm.polyglot.Context$Builder.build(Context.java:1851)
at org.graphwalker.core.machine.ExecutionContext.<init>(ExecutionContext.java:83)
at org.graphwalker.io.factory.json.JsonContext.<init>(JsonContext.java:44)
at org.graphwalker.io.factory.json.JsonContextFactory.create(JsonContextFactory.java:145)
at org.graphwalker.io.factory.json.JsonContextFactory.read(JsonContextFactory.java:128)
at org.graphwalker.io.factory.json.JsonContextFactory.create(JsonContextFactory.java:110)
at org.graphwalker.cli.CLI.getContextsWithPathGenerators(CLI.java:458)
at org.graphwalker.cli.CLI.runCommandOffline(CLI.java:414)
at org.graphwalker.cli.CLI.run(CLI.java:160)
at org.graphwalker.cli.CLI.main(CLI.java:104)
How can I solve this problem?
Thanks