io.takari:jdkget

Takari: The future of software delivery.

License

License

GroupId

GroupId

io.takari
ArtifactId

ArtifactId

jdkget
Last Version

Last Version

0.0.24
Release Date

Release Date

Type

Type

takari-jar
Description

Description

Takari: The future of software delivery.
Source Code Management

Source Code Management

http://github.com/takari/jdkget

Download jdkget

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

JdkGet

JdkGet is a Java utility that allows you to download Linux/OSX/Windows JDKs from Oracle, and extract them in arbitrary directories in a fully automated way.

To install a JDK you can use something like the following:

JdkReleases rels = JdkReleases.get();
ITransport transport = createTransportFactory().createTransport();

JdkRelease rel = rels.select("8u201");
JCE jce = rels.getJCE(rel.getVersion());

JdkGetter getter = new JdkGetter(transport, StdOutput.INSTANCE);

File outputDir = ...;
getter.getJdk(rel, jce, Arch.autodetect(), outputDir);

You can find a list of available JDKs here.

By using this utilitiy you agree to the Oracle Binary Code License Agreement for Java SE.

Building

To build JDKGet use the Maven Wrapper script provided with the project:

./mvnw clean install

Integration testing

Testing downloads of all versions can be performed using it profile and providing your OTN credentials:

mvn clean verify -Pit -Dio.takari.jdkget.username=<otnUsername> -Dio.takari.jdkget.password=<otnPassword>

The result will produce a shaded JAR in the target/ directory which can we executed using java -jar jdkget-${version}.jar

*nix and Solaris

Downloads and extracts a .tar.gz, simple and easy

OSX

This will retrieve the Java equivalent of a turducken: the GZipped CPIO files of the JDK, wrapped in an XAR file, inside an HFS disk image. Can't we just use TarGz files? No, no, that would be too easy.

Windows

Similar to OSX, but with tools.zip (with some jars pack200'd) in CAB in EXE in EXE.

NOTES

io.takari

Versions

Version
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1