mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-03 16:03:08 +08:00
Fix requirements error messages for JDK 8 (#620)
This commit is contained in:
parent
e41fbc5708
commit
d9c08f12a7
4
bin/templates/cordova/lib/check_reqs.js
vendored
4
bin/templates/cordova/lib/check_reqs.js
vendored
@ -203,7 +203,7 @@ module.exports.check_java = function () {
|
||||
return match && match[1];
|
||||
}, () => {
|
||||
var msg =
|
||||
'Failed to run "javac -version", make sure that you have a JDK installed.\n' +
|
||||
'Failed to run "javac -version", make sure that you have a JDK version 8 installed.\n' +
|
||||
'You can get it from the following location:\n' +
|
||||
'https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html';
|
||||
if (process.env['JAVA_HOME']) {
|
||||
@ -359,7 +359,7 @@ module.exports.run = function () {
|
||||
console.log('JAVA_HOME=' + process.env['JAVA_HOME']);
|
||||
|
||||
if (!String(values[0]).startsWith('1.8.')) {
|
||||
throw new CordovaError('Requirements check failed for JDK 1.8');
|
||||
throw new CordovaError(`Requirements check failed for JDK 8 ('1.8.*')`);
|
||||
}
|
||||
|
||||
if (!values[1]) {
|
||||
|
Loading…
Reference in New Issue
Block a user