警告:支持的源版本' RELEASE_6'来自注释处理器&org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor'

时间:2014-10-09 00:22:57

标签: java eclipse jpa

所以我正在对我的代码进行一些新的更改,并决定做一个干净的构建并获得所有这个博洛尼亚......

我最近添加了一个新的PU等基于db的persistence.xml,就像我的第一个使用netbeans ide一样,当我收到错误并决定进行清理和构建时,我会做一些查询。

我不确定是什么导致这种情况,我试图寻找任何可能有@SuportedSourceVersion的东西,因为我正在寻找答案并找到了一些东西。

http://bugs.java.com/view_bug.do?bug_id=7184902 https://netbeans.org/bugzilla/show_bug.cgi?id=210286

Supported source version RELEASE_6 from annotation processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor less than source1.7

这非常烦人和令人沮丧,尤其是在没有太多记录的情况下。

谢谢大家。

warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.8'
Note: Creating non-static metadata factory ...
error: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for sun.util.logging.PlatformLogger not found


An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.RuntimeException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for sun.util.logging.PlatformLogger not found
    at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:407)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
    at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
    at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
    at com.sun.tools.javac.main.Main.compile(Main.java:523)
    at com.sun.tools.javac.main.Main.compile(Main.java:381)
    at com.sun.tools.javac.main.Main.compile(Main.java:370)
    at com.sun.tools.javac.main.Main.compile(Main.java:361)
    at com.sun.tools.javac.Main.compile(Main.java:56)
    at com.sun.tools.javac.Main.main(Main.java:42)
Caused by: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for sun.util.logging.PlatformLogger not found
C:\Users\Konrad\Documents\NetBeansProjects\FB-Style-Page-Slide-Menu\Uploader\nbproject\jfx-impl.xml:3438: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\FB-Style-Page-Slide-Menu\Uploader\nbproject\build-impl.xml:956: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\FB-Style-Page-Slide-Menu\Uploader\nbproject\build-impl.xml:291: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 9 seconds)

1 个答案:

答案 0 :(得分:1)

JavaFX8 - sun.util.logging.PlatformLogger not found Exception in NetBeans 8

我决定查看我之前曾经遇到的第二个问题,由于上面的链接,我认为我曾经纠正过一次。

更改此功能使我能够解决此问题。

有趣的是,当我查看此错误时,它表示这是由于在某些情况下不应该执行的操作,因此错误是相关的。