Android 设置环境出现Java not found in your path的解决办法
2012-03-23 10:10
543 查看
在安装android SDK时,设置好JAVA环境和android环境变量时
在cmd中使用android -h出现如下信息:
在cmd中使用android -h出现如下信息:
WARNING: Java not found in your path. Checking if Java is installed in C:\Program Files\Java. ERROR: No suitable Java found. In order to properly use the Android Developer Tools, you need a suitable version of Java JDK installed on your system. We recommend that you install the JDK version of JavaSE , available here: http://www.oracle.com/technetwork/java/javase/downloads You can find the complete Android SDK requirements here: http://developer.android.com/sdk/requirements.html[/code]
在CMD中运行java 和javac命令时都没问题
出现这个问题的原因是因为你安装的JDK版本不对,可能你安装的是J2EE 的JDK
在上面推荐的下载网站中下载JavaSE的JDK,安装好后重新设置一下JAVA环境变量就可以正常使用的
相关文章推荐
- "ANDROID_HOME is not set and "android" command not in your PATH. "错误的解决办法
- Intellij编译时报“java: System Java Compiler was not found in classpath” 解决办法
- 执行vagrant ssh命令时出现`ssh` executable not found in any directories in the %PATH%.提示的解决办法
- 解决tomcat开始出现in production environments was not found on the java.library.path:xxx
- class java/lang/AutoCloseable not found in *.platforms\android-19\android解决办法
- 项目出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- notedup打开时提示:Java has not been found on your computer解决办法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- 安装Android studio出现'tools.jar' seems to be not in Android Studio classpath的解决方法
- java.lang.ClassNotFoundException:Didn't find class "android.os.PersistableBundle" on path 奇葩BUG解决
- 当在写android的xml文件中出现Unexpected text found in layout file: """的解决办法
- ANDROID_HOME is not set and "android" command not in your PATH解决
- Android 调用系统浏览器 出现activitynotfoundexception 解决办法
- 解决Error:java: System Java Compiler was not found in classpath
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- 配置 maven 出现的问题Error: JAVA_HOME not found in your environment.
- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 问题的解决
- hadoop 报错Error: java.io.FileNotFoundException: Path is not a file:/xx1/xx2的解决办法