Skip to content

Reimplement --jpms with JPMS module APIs #5203

Open
@sbordet

Description

Jetty version
10.0.x

Description
Currently, java -jar start.jar --jpms forces the fork of another JVM: the first JVM computes the module-path and the class-path and then passes them as command line options to the second JVM.

This has been done because Jetty 9.4.x is based on Java 8 but could be run in Java 9+, and therefore we could not use the JPMS module APIs.

However, in Jetty 10 we can use the JPMS module APIs, so we should use them to build a ModuleLayer with the right modules and class-path to start Jetty, exactly like we use the ClassLoader APIs to build a ClassLoader with the class-path when we don't use JPMS.

Metadata

Assignees

No one assigned

    Labels

    StaleFor auto-closed stale issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions