问题: Failed to execute goal on project petroleum: Could not resolve dependencies for project petroleum:petroleum:war:1.0-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path C:\Program Files\Java\jre6/../lib/tools.jar -> [Help 1
Build errors for spider; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project spider: Compilation failureUnable to locate the Javac Co
尝试一下android studio ,谁知出现路径问题 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rathe jre. 打开就出现此错误提示. 百度后网上一致认为是环境变量配置错误,试了很久根本无效. 后来确实没法了,观察提示说:Android Studio classpath中没有tools.jar: 找不到,那就将jdk中的tools.jar
问题: 'tools.jar' seems to be not in Android Studio classpath.Please ensure JAVA_HOME points to JDK rather than JRE. 解决方法: 1.可能是环境变量的问题,这个网上讲得较多,这里不重复 2.这是我解决问题的方法,网上讲得不多,所以提一下: 它上面不是提示在lib目录下找不到tools.jar嘛直接把jdk中的lib下的tools.jar复制到Android的lib目录下就OK了 (ht