Java 9 - Multirelease JAR

This improvement is identified with how you bundle application classes in container records.

Utilizing multi-discharge include, presently a container can contains diverse renditions of a class – perfect to various JDK discharges. The data in regards to various renditions of a class, and in which JDK form which class will be grabbed by class stacked, is put away in MANIFEST.MF document. For this situation, MANIFEST.MF record incorporates the passage Multi-Release: true in its fundamental area.


Step 1 − Create an organizer c:/test/java7/com/javacodegeeks. Make with following substance −

    package com.javacodegeeks;

public class Tester {
   public static void main(String[] args) {
      System.out.println("Inside java 7");

Run example »

javacodegeeks is optimized for learning.© javacodegeeks .
All Right Reserved and you agree to have read and accepted our term and condition