| Start |
|---|
| Example of a multi-release Jar file's contents By setting The structure of such a Jar is the following:
|
| Creating a multi-release Jar using the jar tool The The Let us now create a class called Main that prints the URL of the If we compile this class and re-run the jar command, we get an error: The reason is that the To add Running the Main class shows that the SampleClass gets loaded from the versioned directory: |
| URL of a loaded class inside a multi-release Jar Given the following multi-release Jar: The following class prints the URL of the If the class is compiled and added on the versioned entry for Java 9 in the MRJAR, running it would result in: |
Read Article
https://develop.horje.com/learn/1434/reference