how to start apache Ignite 3 using embedded mode?
04:24 07 Apr 2025

I want use how apache Ignite 3 in java application.

my java code is like this:

 Path path = Path.of("/opt/ignite/ignite.conf");
 Path workPath = Path.of("/tmp/ignite-repository");
 IgniteServer igniteServer = IgniteServer.start("node1", path, workPath);

ignite cofig file is

{
  ignite: {
    network: {
      port: 3344,
      nodeFinder: {
        netClusterNodes: [
          "node1:3344",
          "node2:3344",
          "node3:3344"
        ]
      }
    }
  }
}

and it throw ExceptionInInitializerError error

java.lang.ExceptionInInitializerError
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at org.apache.ignite.internal.util.ExceptionUtils$10.copy(ExceptionUtils.java:967)
at org.apache.ignite.internal.util.ExceptionUtils$ExceptionFactory.createCopy(ExceptionUtils.java:789)
at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:591)
at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCauseInternal(ExceptionUtils.java:724)
at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:569)
at org.apache.ignite.internal.app.IgniteServerImpl.tryToCopyExceptionWithCause(IgniteServerImpl.java:465)
at org.apache.ignite.internal.app.IgniteServerImpl.sync(IgniteServerImpl.java:457)
at org.apache.ignite.internal.app.IgniteServerImpl.start(IgniteServerImpl.java:418)
at org.apache.ignite.IgniteServer.start(IgniteServer.java:77)

how can I use apache Ignite 3 embedded mode?

thanks.

java ignite