Skip to content

Jachou-yt/JavaVersionManager

Repository files navigation

Downloads

JavaVersionManager

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.

JavaDoc

You can see javadoc here !

How to use it

Executable Version

  1. Download the latest release from here
  2. Open the file
  3. Follow the instructions
  4. Enjoy!

API Version

Download manually

  1. Download the latest release from here
  2. Add the file to your project
  3. Read the documentation
  4. Enjoy!

Maven/Gradle method

<dependency>
  <groupId>fr.jachou</groupId>
  <artifactId>javaversionmanager</artifactId>
  <version>VERSION</version>
</dependency>

See more infomartions here

Example

Download Method

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() 

Unzip Method

In this exemple we will unzip the Java 16 version in the folder "path".

JavaVersionManager jvm = new JavaVersionManager();
jvm.unzipJavaVersion(path, JavaVersionList.JAVA_16); 

Documentation

You can find the documentation here

License

This project is under the MIT

Contributors

Owner : @Jachou-yt