当我生成.jar时发出警告

时间:2013-03-09 23:58:52

标签: java persistence

我有这个警告:

   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 个答案:

答案 0 :(得分:0)

它说构建成功了。第一个警告是说你使用Java 7(1.7),源代码支持Java 6(1.6)。第二个战争是第一个战争的结果。如果您的应用程序有效,我认为没有任何问题。如果它不起作用,请尝试使用java 1.6或获取支持java 1.7的更新版本。