简体   繁体   English

我生成.jar时发出警告

[英]warning when i am generating .jar

I have this warning: 我有这个警告:

   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)

what happen? 发生什么事?

It says build was successful. 它说构建成功。 The first warning is saying you use Java 7(1.7) where the source supports Java 6 (1.6). 第一条警告是说您使用Java 7(1.7),其中源支持Java 6(1.6)。 The second waring is a consequence of the first one. 第二次警告是第一次警告的结果。 If your application works, i dont think there is any problem. 如果您的应用程序有效,我认为没有任何问题。 If it doesnt work, try using java 1.6 or get the updated versions that support java 1.7. 如果不起作用,请尝试使用Java 1.6或获取支持Java 1.7的更新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在 linux 上运行 jar 时出现警告 - Warning occurred when I run my jar on linux 当我生成 java 日历 object 时,我会生成什么? - What am I generating when I generate a java Calendar object? 为什么在生成 javadoc 时会收到 ClassCastException? - Why am I getting a ClassCastException when generating javadocs? 在将ADT插件安装到Eclipse 3.5.2时发出警告 - Warning when i am installing ADT plug in to eclipse 3.5.2 为什么我在写';'时没有收到任何警告或错误? - Why I am not getting any Warning or Error when writing ';'? 生成签名 APK 时收到警告 - getting warning when generating signed APK 当我从Netbeans运行JFrame程序时,印地语字体是可见的,但运行.jar文件时,则看不见 - Hindi font is visible when I am running JFrame program from Netbeans but not visible when running .jar file 我正在构建的jar找不到jar依赖项 - Jar I am I building is not finding jar dependencies 从CMD运行JAR文件时,为什么会收到NoClassDefFoundError? - Why am I receiving a NoClassDefFoundError when running a JAR file from CMD? 当类在我的JAR文件中时,为什么会得到一个无法加载的类? - Why am I getting a can't load class, when the class is in my JAR file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM