No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

后端 未结 30 2597
盖世英雄少女心
盖世英雄少女心 2020-11-22 15:40

I\'m compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this:

Windows-->preferences-->installed jres--> jdk1.7.xx  p         


        
30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 16:27

    If you are running the Maven command from cmd, make sure you set the jdk path before running the command. In my case, I have created a .bat file containing the following:

    set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60
    start cmd.exe /k "cd c:\aem_proj\sis\aau"
    

提交回复
热议问题