Eclipse, AppEngine: java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE

前端 未结 4 2009
悲&欢浪女
悲&欢浪女 2021-02-13 23:59

I\'m getting this error when trying to deploy to Google AppEngine. I DO have JDK selected!

------------ Deploying frontend ------------

Preparing to deploy:
            


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-02-14 00:50

    WOW!!! I was dealing with this issue for like 3-4 hours. Was just about to comment saying fuck this. But then I changed the eclipse.ini to:

    -vm
    A:/Programming/Java/jdk1.8.0_73/bin/javaw.exe
    

    instead of:

    -vm
    A:/Programming/Java/jdk1.7.0_79/bin/javaw.exe
    

    AND SUCCESS!

    Why this might have worked? Not really sure. I needed 1.7 not 1.8... but 1.7 kept pointing to a JRE instead of the JDK... And surprisingly 1.8 didn't do that + still worked with the current build. Also worth mentioning to specify 1.7 in facets /build path & compiler..

提交回复
热议问题