JavaVersionManager is a Java library that allows you to download Java version and manage it. It is available in API and executable version.
Warning: This library is still in development, so it is not yet stable.
You can see javadoc here !
- Download the latest release from here
- Open the file
- Follow the instructions
- Enjoy!
- Download the latest release from here
- Add the file to your project
- Read the documentation
- Enjoy!
<dependency>
<groupId>fr.jachou</groupId>
<artifactId>javaversionmanager</artifactId>
<version>VERSION</version>
</dependency>
See more infomartions here
In this example we will download the Java 8 version in the folder "C:\Program Files\Java\jdk1.8.0_271".
After that we will unzip the file.
JavaVersionManager jvm = new JavaVersionManager();
jvm.downloadVersion(JavaVersionList.JAVA_8, "C:\\Program Files\\Java\\jdk1.8.0_271");
jvm.unzipJavaVersion()
In this exemple we will unzip the Java 16 version in the folder "path".
JavaVersionManager jvm = new JavaVersionManager();
jvm.unzipJavaVersion(path, JavaVersionList.JAVA_16);
You can find the documentation here
This project is under the MIT
Owner : @Jachou-yt