How to package JavaFx application -
I use eclipse and efxclipse plugin I have created a very simple JavaFx application after Oracle documentation. My JDK version is jdk1.7-045 I think the export application as normal Java is different from the normal Java application. What if I want to create a normal jar file, and can be executed by double click jar file? Any indication
D: \ Temp & gt; Java -classpath ./jfxrt.jar jar Fxhello.jar exception in thread "main" java.lang.NoClassDefFoundError: JavaFX / application / Ap fold java.lang .ClassLoader.defineClass1 java.lang.ClassLoader.defineClass (ClassLoader.java: 800) (Native method on java.security.SecureClassLoader.defineClass) (SecureClassLoader.java:14 2) on java.net.URLClassLoader.defineClass (URLClassLoader. Java: 449) java.net.URLClassLoader.access $ 100 (URLClassLoader .java: 71) to (URLClassLoader.java java.net.URLClassLoader $ 1.run on (URLClassLoader.java:361) java.net.URLClassLoader at $ 1.run: 355) java on java.net.URLClassLoader.findClass. security.AccessController.doPrivileged (Native method) (URLClassLoader.java:354) $ AppClassLoader.loadClass on java.lang.ClassLoader.loadClass (ClassLoader.java:425) on sun.misc.Launcher (Launcher.java:308) Java javafx.application.Application sun.launcher on .lang.ClassLoader.loadClass (ClassLoader.java:358) java.lang.ClassNotFoundException: java.net.URLClassLoader $ 1.run (URLClassLoader.java:366) on java.net. On due to LauncherHelper.checkAndLoadMain (LauncherHelper.java:482). $ 1.run on java.net.URLClassLoader.findClass (URLClassLoader.java:354) java.security.AccessController.doPrivileged on java.lang.ClassLoader.loadClass (Native Method) (URLClassLoader.java:355) (ClassLoader. Java URLClassLoader: 425) sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java308) at java.lang.ClassLoader.loadClass (ClassLoader.java358) ... 13 more
<
Comments
Post a Comment