java - JavaFX8 - sun.util.logging.PlatformLogger not found Exception in NetBeans 8 -
i have installed jdk8 + netbeans8 (downloaded bundled setup oracle site) on windows 8.1 machine.
when create simple javafx fxml application, works fine. when add new database entity class using wizard , compile it, following stack trace:
note: creating non-static metadata factory ... error: com.sun.tools.javac.code.symbol$completionfailure: class file sun.util.logging.platformlogger not found annotation processor threw uncaught exception. consult following stack trace details. java.lang.runtimeexception: com.sun.tools.javac.code.symbol$completionfailure: class file sun.util.logging.platformlogger not found @ org.eclipse.persistence.internal.jpa.modelgen.canonicalmodelprocessor.process(canonicalmodelprocessor.java:407) @ com.sun.tools.javac.processing.javacprocessingenvironment.callprocessor(javacprocessingenvironment.java:794) @ com.sun.tools.javac.processing.javacprocessingenvironment.discoverandrunprocs(javacprocessingenvironment.java:705) @ com.sun.tools.javac.processing.javacprocessingenvironment.access$1800(javacprocessingenvironment.java:91) @ com.sun.tools.javac.processing.javacprocessingenvironment$round.run(javacprocessingenvironment.java:1035) @ com.sun.tools.javac.processing.javacprocessingenvironment.doprocessing(javacprocessingenvironment.java:1176) @ com.sun.tools.javac.main.javacompiler.processannotations(javacompiler.java:1173) @ com.sun.tools.javac.main.javacompiler.compile(javacompiler.java:859) @ com.sun.tools.javac.main.main.compile(main.java:523) @ com.sun.tools.javac.main.main.compile(main.java:381) @ com.sun.tools.javac.main.main.compile(main.java:370) @ com.sun.tools.javac.main.main.compile(main.java:361) @ com.sun.tools.javac.main.compile(main.java:56) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.apache.tools.ant.taskdefs.compilers.javac13.execute(javac13.java:56) @ org.apache.tools.ant.taskdefs.javac.compile(javac.java:1153) @ org.apache.tools.ant.taskdefs.javac.execute(javac.java:930) @ org.netbeans.modules.java.source.ant.javactask.execute(javactask.java:145) @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292) @ sun.reflect.generatedmethodaccessor58.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) @ org.apache.tools.ant.task.perform(task.java:348) @ org.apache.tools.ant.taskdefs.sequential.execute(sequential.java:68) @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292) @ sun.reflect.generatedmethodaccessor58.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) @ org.apache.tools.ant.task.perform(task.java:348) @ org.apache.tools.ant.taskdefs.macroinstance.execute(macroinstance.java:396) @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292) @ sun.reflect.generatedmethodaccessor58.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) @ org.apache.tools.ant.task.perform(task.java:348) @ org.apache.tools.ant.target.execute(target.java:435) @ org.apache.tools.ant.target.performtasks(target.java:456) @ org.apache.tools.ant.project.executesortedtargets(project.java:1393) @ org.apache.tools.ant.helper.singlecheckexecutor.executetargets(singlecheckexecutor.java:38) @ org.apache.tools.ant.project.executetargets(project.java:1248) @ org.apache.tools.ant.taskdefs.ant.execute(ant.java:440) @ org.apache.tools.ant.taskdefs.calltarget.execute(calltarget.java:105) @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292) @ sun.reflect.generatedmethodaccessor58.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) @ org.apache.tools.ant.task.perform(task.java:348) @ org.apache.tools.ant.target.execute(target.java:435) @ org.apache.tools.ant.target.performtasks(target.java:456) @ org.apache.tools.ant.project.executesortedtargets(project.java:1393) @ org.apache.tools.ant.project.executetarget(project.java:1364) @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexecutor.java:41) @ org.apache.tools.ant.project.executetargets(project.java:1248) @ org.apache.tools.ant.module.bridge.impl.bridgeimpl.run(bridgeimpl.java:286) @ org.apache.tools.ant.module.run.targetexecutor.run(targetexecutor.java:555) @ org.netbeans.core.execution.runclassthread.run(runclassthread.java:153) caused by: com.sun.tools.javac.code.symbol$completionfailure: class file sun.util.logging.platformlogger not found c:\users\ajq\documents\netbeansprojects\javafx8app\nbproject\jfx-impl.xml:3438: following error occurred while executing line: c:\users\ajq\documents\netbeansprojects\javafx8app\nbproject\build-impl.xml:924: following error occurred while executing line: c:\users\ajq\documents\netbeansprojects\javafx8app\nbproject\build-impl.xml:264: compile failed; see compiler error output details. build failed (total time: 0 seconds)
however, if comment out annotations in entity class or change target platform 1.8 1.7, application gets compiled without issue.
is bug in netbeans 8 or other configuration issue?
i have same platform (netbeans 8.0 , jdk 8), searching in other project (build in netbeans 7.4 , jdk 7) found little difference in project.properties file, search in <>/nbproject, line:
javac.processorpath=\ ${javac.classpath}:\ ${libs.eclipselinkmodelgen.classpath}
and change text following:
javac.processorpath=\ ${javac.classpath}
thats all, don't know if it's bug in netbeans 8 or maybe it's wrong in way make project, fix work me, more details in blog entry (spanish version)
Comments
Post a Comment