bestikk-jdk-ea
v1.0.0
Published
A simple tool to download and install JDK Early Access Releases
Downloads
204
Readme
Bestikk JDK EA
ifdef::env-github[] image:http://img.shields.io/travis/bestikk/bestikk-jdk-ea.svg[Travis build status, link=https://travis-ci.org/bestikk/bestikk-jdk-ea] image:http://img.shields.io/npm/v/bestikk-jdk-ea.svg[npm version, link=https://www.npmjs.org/package/bestikk-jdk-ea] endif::[]
A simple tool to download and install JDK Early Access Releases
Install
$ npm i --save-dev bestikk-jdk-ea
Usage
var jdkEA = require('bestikk-jdk-ea');
// download and install the latest JDK 8 EA Release in 'install/jdk8' directory
jdkEA.installJDK8EA('install/jdk8');
// download and install the latest JDK 9 EA Release in 'install/jdk9' directory
jdkEA.installJDK9EA('install/jdk9')
.then(() => console.log(require('child_process').spawnSync('install/jdk9/bin/java', ['-version'], {encoding: 'utf8'}))); // <1>
<1> installJDK8EA
and installJDK9EA
returns a Promise.