我在使用m2eclipse在Eclipse中编译项目。我在Eclipse中设置JDK路径,如下所示:
[ERROR]Perhaps you are running on a JRE rather than a JDK?Perhaps you are running on a JRE rather than a JDK?
我在控制面板的“系统”中找到了环境变量,并创建了两个新变量,一个用于用户变量,一个用于系统变量。两者都被命名为JAVA_HOME,都指向
C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:137: Please set java.home to a JDK