java - Can't run javafx JAR outside Netbeans -
i have problem here javafx application jar, generated netbeans. running pretty if running inside netbeans. when use command line , try run jar of application created netbeans, using command:
java -jar sequencealign.jar
i got lot of errors in terminal. error following:
java.lang.nullpointerexception file:/users/tsukanomon/netbeansprojects/sequencealign/dist/sequencealign.jar!/sequencealign/biogui.fxml @ sequencealign.bioguicontroller.getmatrixsubnames(bioguicontroller.java:110) @ sequencealign.bioguicontroller.populatecombosubmatrix(bioguicontroller.java:99) @ sequencealign.bioguicontroller.initialize(bioguicontroller.java:137) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2152) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2028) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2742) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2721) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2707) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2694) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2683) @ sequencealign.sequencealign.start(sequencealign.java:21) @ com.sun.javafx.application.launcherimpl$5.run(launcherimpl.java:319) @ com.sun.javafx.application.platformimpl$5.run(platformimpl.java:206) @ com.sun.javafx.application.platformimpl$4.run(platformimpl.java:173) @ com.sun.glass.ui.invokelaterdispatcher$future.run(invokelaterdispatcher.java:76) exception in application start method java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.javafx.main.main.launchapp(main.java:642) @ com.javafx.main.main.main(main.java:805) caused by: java.lang.runtimeexception: exception in application start method @ com.sun.javafx.application.launcherimpl.launchapplication1(launcherimpl.java:403) @ com.sun.javafx.application.launcherimpl.access$000(launcherimpl.java:47) @ com.sun.javafx.application.launcherimpl$1.run(launcherimpl.java:115) @ java.lang.thread.run(thread.java:722) caused by: java.lang.nullpointerexception @ sequencealign.bioguicontroller.getmatrixsubnames(bioguicontroller.java:110) @ sequencealign.bioguicontroller.populatecombosubmatrix(bioguicontroller.java:99) @ sequencealign.bioguicontroller.initialize(bioguicontroller.java:137) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2152) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2028) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2742) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2721) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2707) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2694) @ javafx.fxml.fxmlloader.load(fxmlloader.java:2683) @ sequencealign.sequencealign.start(sequencealign.java:21) @ com.sun.javafx.application.launcherimpl$5.run(launcherimpl.java:319) @ com.sun.javafx.application.platformimpl$5.run(platformimpl.java:206) @ com.sun.javafx.application.platformimpl$4.run(platformimpl.java:173) @ com.sun.glass.ui.invokelaterdispatcher$future.run(invokelaterdispatcher.java:76) 2013-05-15 02:14:38.924 java[48780:2517] [jrsappkitawt markappisdaemon]:process manager initialized: can't enable headless mode. java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.javafx.main.main$2.run(main.java:881) @ java.awt.event.invocationevent.dispatch(invocationevent.java:241) @ java.awt.eventqueue.dispatcheventimpl(eventqueue.java:721) @ java.awt.eventqueue.access$200(eventqueue.java:103) @ java.awt.eventqueue$3.run(eventqueue.java:682) @ java.awt.eventqueue$3.run(eventqueue.java:680) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:76) @ java.awt.eventqueue.dispatchevent(eventqueue.java:691) @ java.awt.eventdispatchthread.pumponeeventforfilters(eventdispatchthread.java:242) @ java.awt.eventdispatchthread.pumpeventsforfilter(eventdispatchthread.java:161) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(eventdispatchthread.java:150) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:146) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:138) @ java.awt.eventdispatchthread.run(eventdispatchthread.java:91) caused by: java.awt.headlessexception @ java.awt.graphicsenvironment.checkheadless(graphicsenvironment.java:207) @ java.awt.window.<init>(window.java:535) @ java.awt.frame.<init>(frame.java:420) @ java.awt.frame.<init>(frame.java:385) @ javax.swing.swingutilities$sharedownerframe.<init>(swingutilities.java:1759) @ javax.swing.swingutilities.getsharedownerframe(swingutilities.java:1834) @ javax.swing.joptionpane.getrootframe(joptionpane.java:1697) @ javax.swing.joptionpane.showoptiondialog(joptionpane.java:863) @ javax.swing.joptionpane.showmessagedialog(joptionpane.java:667) @ javax.swing.joptionpane.showmessagedialog(joptionpane.java:638) ... 19 more
my specifications are:
- mac os x mountain lion 10.8.3
- java version "1.7.0_11"
- java(tm) se runtime environment (build 1.7.0_11-b21)
- java hotspot(tm) 64-bit
- server vm (build 23.6-b04, mixed mode)
- netbeans 7.2.1
thanks helping in advance!!!!!
netbeans wasn't importing necessary libs run application had add manually jar/library, though i've had added @ properties of project.
Comments
Post a Comment