android 5.0 下载编译 Ubuntu java 环境变量 Eclipse 启动时报错:A Java RunTime Environment (JRE) or Java Development

CM的CM-12.0版本(对应Android5.0.2):html

$ repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0

注意:Android5.0 之后的代码,都须要使用OpenJDK来编译。若是出现由于JDK版本形成的编译错误,请安装OpenJDK。java

$ sudo apt-get install openjdk-7-jdk

 

 

Ubuntu java 环境变量android

 

启动eclipse是报 no java virtual machine was found after searching the following location git

 

Eclipse 启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…github

相关文章
相关标签/搜索