我在控制面板的“系统”中找到了环境变量,并创建了两个新变量,一个用于用户变量,一个用于系统变量。两者都被命名为JAVA_HOME,都指向
C:\太阳\ SDK \ JDK \ BIN但由于某些原因,运行Java命令时仍然出现以下错误...
BUILD FAILEDC:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:161: The following error occurred while executing this line:C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:141: The following error occurred while executing this line:C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:137: Please set java.home to a JDK installationTotal time: 1 secondC:\Users\Derek\Desktop\eclipse\eclipse\glassfish>lib\ant\bin\ant -f setup.xmlUnable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jaBuildfile: setup.xml我该如何解决这个问题?
相似问题