JOpt core for Java 17

The Java 17 line is the current line of the JOpt core. Its versions end in -j17, and it runs on Java 17. The core runs in process, in the JVM of your application, without a server. The other lines of the core are compared on JOpt.Core overview.

How the core gets into your application

Add jopt:jopt.core.pg with the classifier shaded and a version of the Java 17 line to the pom. Maven resolves it from the public DNA Evolutions repository, which needs no login. In Java you build the optimization from nodes, resources, properties and the license, and the core computes the plan in your JVM, without a server. The result holds the routes with the order of the visits and their times.

The diagram opens full size on click.

Maven fetches the core like any other dependency. In Java you build the optimization from nodes, resources and properties, set the license, and start the run; the result holds the routes. Basic elements introduces the elements, and First optimization builds one step by step.

What it needs

  • A JDK 17 and Maven, or an IDE with Maven support.
  • The public Maven repository repo.dna-evolutions.com/releases. It needs no login.
  • The dependency jopt:jopt.core.pg with the classifier shaded and a version of the Java 17 line. The newest is 7.5.3-rc9-j17; the versions and their changes are in Core releases.
<repositories>
  <repository>
    <id>dna-releases</id>
    <url>https://repo.dna-evolutions.com/releases</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>jopt</groupId>
    <artifactId>jopt.core.pg</artifactId>
    <version>7.5.3-rc9-j17</version>
    <classifier>shaded</classifier>
  </dependency>
</dependencies>

License

Without a license, an optimization may hold up to 10 elements; nodes and resources count together. The Java examples set the public evaluation license, with a limit of 20 elements. The extended free license and the full licenses are in License guide: element limits.

Examples and API reference

Moving to the Java 25 line

A Java 25 application can use the Java 25 line. What changes for a caller is listed in Java 25 line: what changes for a caller.


Added: 2026-11-27 | Last updated: 2026-11-27