Error while creating jar from java application in netbeans


Error while creating jar from java application in netbeans



here is the error in output section of netbeans.


ant -f C:\Users\user\Documents\NetBeansProjects\QUIZ -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: C:UsersuserDocumentsNetBeansProjectsQUIZbuildbuilt-clean.properties
Deleting directory C:UsersuserDocumentsNetBeansProjectsQUIZbuild
clean:
init:
deps-jar:
Created dir: C:UsersuserDocumentsNetBeansProjectsQUIZbuild
Updating property file: C:UsersuserDocumentsNetBeansProjectsQUIZbuildbuilt-jar.properties
Created dir: C:UsersuserDocumentsNetBeansProjectsQUIZbuildclasses
Created dir: C:UsersuserDocumentsNetBeansProjectsQUIZbuildclassesMETA-INF
Copying 1 file to C:UsersuserDocumentsNetBeansProjectsQUIZbuildclassesMETA-INF
Created dir: C:UsersuserDocumentsNetBeansProjectsQUIZbuildempty
Created dir: C:UsersuserDocumentsNetBeansProjectsQUIZbuildgenerated-sourcesap-source-output
Compiling 21 source files to C:UsersuserDocumentsNetBeansProjectsQUIZbuildclasses
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:UsersuserDocumentsNetBeansProjectsQUIZnbprojectbuild-impl.xml:930: The following error occurred while executing this line:
C:UsersuserDocumentsNetBeansProjectsQUIZnbprojectbuild-impl.xml:270: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 17 seconds)



plz help.





Something is wrong with Logger
– Rajat Verma
Jun 30 at 7:20






Hope this helps : stackoverflow.com/questions/22562797/…
– Rajat Khandelwal
Jun 30 at 7:28






Thank you very much.
– Himanshu Sajwan
Jun 30 at 9:06









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

.

How to generate build files in next js

Delphi Android file open failure with API 26