JavaFX8 - sun.util.logging.PlatformLogger not found Exception in NetBeans 8

落花浮王杯 提交于 2019-11-28 20:50:15

I have the same platform (netbeans 8.0 and JDK 8), searching in other project (build in netbeans 7.4 and JDK 7) I found a little difference in the project.properties file, search it in <>/nbproject, look for the line:

javac.processorpath=\
    ${javac.classpath}:\
    ${libs.eclipselinkmodelgen.classpath}

and change the text to finally be the following:

javac.processorpath=\
    ${javac.classpath}

thats all, I don't know if it's a bug in netbeans 8 or maybe it's something wrong in the way to make the project, but this fix work for me, more details in this blog entry (spanish version)

  1. Right Click on the project and select "Properties".
  2. Select "Libraries" from opened "Project Properties window".
  3. Select "Processor" tab.
  4. Remove EclipseLink from there.
  5. Apply the changes and do a Clean Build.

That's it. :)

For Maven projects, setting the bootclasspath for the compiler plugin fixes the problem:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <compilerArguments>
                    <bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
                </compilerArguments>
            </configuration>
        </plugin>
    </plugins>
</build>

I got the same error, I checked what imolero said at the project.property file and is exactly as he said is the solution, so I have to change nothing in it.

I realized that each time I worked in a JavaFX project the java files are not compiled automatically when save the file, so I made manually (F9), and re-run the project and every thing works fine. I tried to set Compile on Save in the project properties, but is shadowed, that´s the reason that I have to do it manually. My enviroment is: Windows 7 Professional 64 bits, JDK 1.8.0, Netbeans 8.0 (Build 201403101706)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!