Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

App distribution problems

874879Sep 9 2011 — edited Sep 9 2011
Hello everybody,

I'm encountering a pretty peculiar problem. I've created an JavaFx app with my collaegue, with external libraries, and built it with Eclipse. Now, jar generated by Eclipse:
- works on my PC
- works on my co-workers PC (the one I've worked with)
- JavaFX examples work on my co-workers PC, but not on mine

Since the app should distrubuted to more computers, I've tried to run on few PCs with jfx runtime installed and there was always this error:
Caused by: java.lang.UnsatisfiedLinkError: Invalid URL for class: jar:rsrc:jfxrt.jar!/com/sun/glass/utils/NativeLibLoader.class

Everything is b42.

Is there a checklist of things to do in such occasions, beside editing environment variables? Here is the whole error code, any help is welcome! Thank you.

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Invalid URL for class: jar:rsrc:jfxrt.jar!/com/sun/glass/utils/NativeLibLoader.
class
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source)
at com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Invalid URL for class: jar:rsrc:jfxrt.jar!/com/sun/glass/utils/NativeLibLoader.class
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(Unknown Source)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(Unknown Source)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(Unknown Source)
at com.sun.glass.ui.Application$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.Application.loadNativeLibrary(Unknown Source)
at com.sun.glass.ui.win.WinApplication.<clinit>(Unknown Source)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(Unknown Source)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(Unknown Source)
at com.sun.glass.ui.Application.Run(Unknown Source)
... 6 more
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2011
Added on Sep 9 2011
8 comments
1,202 views