有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

生成时发出java警告。罐子

我有以下警告:

   warning: Supported source version 'RELEASE_6' from annotation processor
   org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source
   '1.7'
   Note: Creating non-static metadata factory ...
   Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false
   Note: Optional file was not found: META-INF/orm.xml continuing with generation.
   Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with
   generation.
   Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false
   Note: Optional file was not found: META-INF/orm.xml continuing with generation.
   Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with
   generation.
   warning: The following options were not recognized by any processor:
   '[eclipselink.canonicalmodel.use_static_factory]'
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   1 warning
   Copying 5 files to E:\NetBeansProjects\votaciones\build\classes
   compile:
   Created dir: E:\NetBeansProjects\votaciones\dist
   Copying 1 file to E:\NetBeansProjects\votaciones\build
   Copy libraries to E:\NetBeansProjects\votaciones\dist\lib.
   Building jar: E:\NetBeansProjects\votaciones\dist\votaciones.jar
   To run this application from the command line without Ant, try:
   java -jar "E:\NetBeansProjects\votaciones\dist\votaciones.jar"
   jar:
BUILD SUCCESSFUL (total time: 8 seconds)

发生了什么事


共 (1) 个答案

  1. # 1 楼答案

    它说建造是成功的。第一个警告是,如果源代码支持Java6(1.6),则使用Java7(1.7)。战争是第一种后果。如果你的申请有效,我认为没有任何问题。如果不起作用,请尝试使用Java1.6或获得支持Java1.7的更新版本