JavaFX NetBeans插件sample运行报错解决方案

报错信息如下:


run:

Error: failed to msvcr100.dll java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and Settings\Administrator\.netbeans\7.0\lib\javafx2-win\bin\msvcr100.dll
*** Fallback to Prism SW pipeline
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: C:\Documents and Settings\Administrator\.netbeans\7.0\lib\javafx2-win\bin\mat.dll: Can't find dependent libraries
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:255)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:30)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:91)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:17)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:55)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.UnsatisfiedLinkError: C:\Documents and Settings\Administrator\.netbeans\7.0\lib\javafx2-win\bin\mat.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:155)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:85)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:30)
    at com.sun.glass.ui.Application$1.run(Application.java:27)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:25)
    at com.sun.glass.ui.win.WinApplication.(WinApplication.java:33)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:49)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:245)
    ... 5 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)


解决办法:

copy  D:\data\javafx\javafx-sdk2.0-beta\rt\bin下的所有文件覆盖C:\Documents and Settings\Administrator\.netbeans\7.0\lib\javafx2-win\bin下的所有文件,即可。


参考:http://forums.oracle.com/forums/thread.jspa?messageID=9653766



你可能感兴趣的:(Java技术,语言学习)