This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198574 - Exception in output and application does not start when you run the default FX app
Summary: Exception in output and application does not start when you run the default F...
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 7.0.1
Hardware: PC All
: P1 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 07:48 UTC by Mikhail Kondratyev
Modified: 2011-05-13 09:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kondratyev 2011-05-13 07:48:28 UTC
Steps to reproduce:
 - create a project of Java FX type
 - try to run it

The following exception stacktrace is written in output and nothing starts:

Error: failed to msvcr100.dll java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\JavaFXApplication1\lib\bin\msvcr100.dll

*** Fallback to Prism SW pipeline

java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\JavaFXApplication1\lib\bin\mat.dll

	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)

	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:146)

	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.Platform$1.run(Platform.java:32)

	at java.security.AccessController.doPrivileged(Native Method)

	at com.sun.glass.ui.Platform.DeterminePlatform(Platform.java:30)

	at com.sun.glass.ui.PlatformFactory.getPlatformFactory(PlatformFactory.java:19)

	at com.sun.glass.ui.Application.Run(Application.java:34)

	at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:233)

	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:30)

	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:64)

	at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:16)

	at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:42)

	at java.lang.Thread.run(Thread.java:662)
Comment 1 Adam Sotona 2011-05-13 09:36:50 UTC
You forget to mention that you've selected "Use Dedicated Folder for Storing Libraries" during project creation.
This selection caused jfxrt.jar to be copied into your project dedicated library folder. As the NativeLibLoader inside jfxrt.jar is not able to locate native libraries except when stored in jfxrt.jar location ..\bin folder - this is the result.

The fix avoids copying jfxrt.jar.