Skip to content

Commit b2a69c1

Browse files
committed
Add README
1 parent e6680ee commit b2a69c1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.MD

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# AzulJavaDownloader
2+
3+
This library is used to download the Azul Java binaries from the Azul CDN.
4+
5+
#### Example :
6+
7+
```java
8+
final AzulJavaDownloader downloader = new AzulJavaDownloader(System.out::println);
9+
final Path javas = Paths.get("javas"); // The directory where the Java versions will be downloaded.
10+
final AzulJavaBuildInfo buildInfoWindows = downloader.getBuildInfo(new RequestedJavaInfo("17", AzulJavaType.JDK, "windows", "x64", true)); // jdk 17 with javafx for Windows 64 bits
11+
final Path javaHomeWindows = downloader.downloadAndInstall(buildInfoWindows, javas);
12+
System.out.println(javaHomeWindows.toAbsolutePath()); // The path to the Java home directory
13+
14+
final AzulJavaBuildInfo buildInfoLinux = downloader.getBuildInfo(new RequestedJavaInfo("17", AzulJavaType.JDK, "linux", "x64", true)); // jdk 17 with javafx for linux 64 bits
15+
final Path javaHomeLinux = downloader.downloadAndInstall(buildInfoLinux, javas);
16+
System.out.println(javaHomeLinux.toAbsolutePath()); // The path to the Java home directory
17+
```

0 commit comments

Comments
 (0)