Java 运行本地GAE应用程序时出现问题:未解决的编译问题

Java 运行本地GAE应用程序时出现问题:未解决的编译问题,java,google-app-engine,objectify,Java,Google App Engine,Objectify,我将项目目录移动到另一台计算机,然后出现以下问题: HTTP ERROR 500 Problem accessing /index.jsp. Reason: java.lang.Error: Unresolved compilation problems: The method find(Class, long) in the type Objectify is not applicable for the arguments (Class, Long) Type

我将项目目录移动到另一台计算机,然后出现以下问题:

HTTP ERROR 500

Problem accessing /index.jsp. Reason:

    java.lang.Error: Unresolved compilation problems: 
    The method find(Class, long) in the type Objectify is not applicable for the arguments (Class, Long)
    Type mismatch: cannot convert from Object to Usuario
    The method delete(Class, long) in the type Objectify is not applicable for the arguments (Class, Long)
    Syntax error, parameterized types are only available if source level is 1.5
    Syntax error, parameterized types are only available if source level is 1.5
    Syntax error, parameterized types are only available if source level is 1.5
    Syntax error, parameterized types are only available if source level is 1.5
  • 我的Objectify JAR已在构建路径中设置
  • 作为我的JRE库,我使用JDK1.7.002
  • 作为我的应用程序引擎SDK,我使用的是1.6.1.1

我已经遵循了很多指南来解决类似的问题,比如卸载并重新安装我所有的JRE/JDK,但没有任何效果。我不知道该怎么办了。希望有人能帮我解决这个问题,谢谢

错误说明了一切:您试图用Long类的实例调用find方法,而该方法需要一个Long类实例。GAE使用的java似乎不提供自动装箱,因此您必须使用java.lang.Long类的longValue()来自己执行装箱。

您提到了您的JRE,但Eclipse也有“编译器遵从性级别”。是否可能设置为1.4或其他


另一种可能性是,您的项目使用的是非标准JRE,尽管1.7是默认版本。

这当然不是问题所在。同一个项目在另一台计算机上运行正常。