Build Failed: Error: Please make sure java is installed and JAVA_HOME is in your environment
at initCocosEnv (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:2245)
at initSettings (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:3088)
at Object.build (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:16390)
at Gulp.<anonymous> (E:\tools\CocosCreator\resources\app.asar\editor\core\gulp-build.js:1:16843)
at module.exports (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:134:8)
at E:\tools\CocosCreator\resources\app.asar\node_modules\gulp-sequence\index.js:63:12
at apply (E:\tools\CocosCreator\resources\app.asar\node_modules\thunks\index.js:355:38)
at Async.series.t (E:\tools\CocosCreator\resources\app.asar\editor\core\builder.js:1:3024)
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:726:13
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:264:21
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:723:17
at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37
at Gulp.doneCallback (E:\tools\CocosCreator\resources\app.asar\editor\core\gulp-build.js:1:17321)
at Gulp.Orchestrator.stop (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:150:9)
检测JAVA是否安装
然后以管理员方式运行CocosCreator,再次构建