Centos 8安装Java 11 (OpenJDK 11) 与环境变量配置
我们使用cordova的时候需要安装其他的应用依赖,在进行环境检查的时候出现如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [root@localhost myapp]# cordova requirements Requirements check results for android: Java JDK: not installed Failed to find 'JAVA_HOME' environment variable. Try setting it manually. Android SDK: not installed Failed to find 'ANDROID_SDK_ROOT' environment variable. Try setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory. Android target: not installed Command failed with ENOENT: android list target spawn android ENOENT Gradle: not installed Could not find gradle wrapper within Android SDK. Could not find Android SDK directory. Might need to install Android SDK or set up 'ANDROID_SDK_ROOT' env variable. Requirements check results for ios: Apple macOS: not installed Error: Cordova tooling for iOS requires Apple macOS Some of requirements check failed [root@localhost myapp]# |
通过上面我们可以知道java jdk并没有安装,这…