-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
8
-
Ubuntu 12.04 x64
JDK8 b118 + default JavaFX cobundled
When I try to create native application from some HelloWorld application with dependency on external library, the created jar is successfull started, but when trying to start generated executable or equally any of generated deb/rpm packages, I'm getting output like this external library is not in the package, but it is:
16:39:10 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ java -jar HelloWorldWithExtLib.jar
[MSG] Hello World With Ext library Initialized
[MSG] JavaRuntimeVersion:1.8.0-ea-b118
[MSG] PASS
16:40:10 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ ./bundles/HelloWorldWithExtLib/HelloWorldWithExtLib
Exception in Application start method
Exception thrown from main method of helloworldwithextlib/HelloWorldWithExtLib
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoClassDefFoundError: util/Util
at helloworldwithextlib.HelloWorldWithExtLib.start(Unknown Source)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:331)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:297)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:294)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.access$200(GtkApplication.java:48)
at com.sun.glass.ui.gtk.GtkApplication$6$1.run(GtkApplication.java:149)
... 1 more
Caused by: java.lang.ClassNotFoundException: util.Util
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
16:40:28 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ find bundles/HelloWorldWithExtLib -name Util.jar
bundles/HelloWorldWithExtLib/app/Util.jar
16:41:22 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist/bundles/HelloWorldWithExtLib/app$ java -jar HelloWorldWithExtLib.jar
[MSG] Hello World With Ext library Initialized
[MSG] JavaRuntimeVersion:1.8.0-ea-b118
[MSG] PASS
It is working in 7u51, so that should be considered regression.
To reproduce:
1) download attached HelloWorldWith.tar.bz2
2) unpack it & cd into the only directory in it
3) set correct JAVA_HOME to JDK8
4) run "bash update_prop.sh"
5) run "ant -f simple-build.xml deploy-all"
6) see results in dist directory
16:39:10 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ java -jar HelloWorldWithExtLib.jar
[MSG] Hello World With Ext library Initialized
[MSG] JavaRuntimeVersion:1.8.0-ea-b118
[MSG] PASS
16:40:10 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ ./bundles/HelloWorldWithExtLib/HelloWorldWithExtLib
Exception in Application start method
Exception thrown from main method of helloworldwithextlib/HelloWorldWithExtLib
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoClassDefFoundError: util/Util
at helloworldwithextlib.HelloWorldWithExtLib.start(Unknown Source)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:331)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:297)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:294)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.access$200(GtkApplication.java:48)
at com.sun.glass.ui.gtk.GtkApplication$6$1.run(GtkApplication.java:149)
... 1 more
Caused by: java.lang.ClassNotFoundException: util.Util
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
16:40:28 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist$ find bundles/HelloWorldWithExtLib -name Util.jar
bundles/HelloWorldWithExtLib/app/Util.jar
16:41:22 ~/work/packagerTestsSuite/apps/HelloWorldWithExtLib/dist/bundles/HelloWorldWithExtLib/app$ java -jar HelloWorldWithExtLib.jar
[MSG] Hello World With Ext library Initialized
[MSG] JavaRuntimeVersion:1.8.0-ea-b118
[MSG] PASS
It is working in 7u51, so that should be considered regression.
To reproduce:
1) download attached HelloWorldWith.tar.bz2
2) unpack it & cd into the only directory in it
3) set correct JAVA_HOME to JDK8
4) run "bash update_prop.sh"
5) run "ant -f simple-build.xml deploy-all"
6) see results in dist directory