java - JavaFX built with netbeans on my 64 bit Mac won't run on 32 bit Linux -


i'm little perplexed. have javafx program i'm working on (hobby) , builds , runs fine on mac. (i have latest oracle java 7). when run jar file built on mac (in latest netbeans), on 32-bit linux system (also latest oracle version) gives me following error:

java.lang.reflect.invocationtargetexception file:/home/me/afolder/someone/saved/something.jar!/something/mainwindow.fxml    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2186)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2028)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2744)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2723)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2709)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2696)    @ javafx.fxml.fxmlloader.load(fxmlloader.java:2685)    @ something.something.start(something.java:33)    @ com.sun.javafx.application.launcherimpl$5.run(launcherimpl.java:319)    @ com.sun.javafx.application.platformimpl$5.run(platformimpl.java:215)    @ com.sun.javafx.application.platformimpl$4$1.run(platformimpl.java:179)    @ com.sun.javafx.application.platformimpl$4$1.run(platformimpl.java:176)    @ java.security.accesscontroller.doprivileged(native method)    @ com.sun.javafx.application.platformimpl$4.run(platformimpl.java:176)    @ com.sun.glass.ui.invokelaterdispatcher$future.run(invokelaterdispatcher.java:76)    @ com.sun.glass.ui.gtk.gtkapplication._runloop(native method)    @ com.sun.glass.ui.gtk.gtkapplication$3$1.run(gtkapplication.java:82)    @ java.lang.thread.run(unknown source) 

the line something.java:33 call

anchorpane mainwindowpane =        (anchorpane)fxmlloader.load(udomail.class.getresource("mainwindow.fxml")); 

so, i'm rather confused start. jar file built on mac, moved 32-bit linux (running latest 32 bit oracle java), , ran.

what's rather strange if build on 32-bit linux, run linux built jar file on mac, (effectively) same error on mac.

if run on same platform build, works fine. (that is, if take code , build on linux runs on linux, not on mac.)

since can't seem run debugger on linux mac built jar file (and vice versa), i'm little lost start looking. i've ensured i'm using file.separator , looked other os specific stuff, i'd find out these lines in fxmlloader.java (in source code) see why it's barfing. after commenting out of code, line seems cause barf simple file instantiation:

file myfile = new file(userdirectorystring); 

i use many files , directories, , line first call file or directory usage in code. i've validated string "userdirectorystring" , it's correct.

any ideas?

i can notion, here :

public static final string initialize_method_name = "initialize";  // initialize controller             method initializemethod =   getcontrollermethods().get(initialize_method_name);              if (initializemethod != null) {                 try {                     methodutil.invoke(initializemethod, controller, new object [] {});                 } catch (illegalaccessexception exception) {                     // todo throw when initializable deprecated/removed                     // throw new loadexception(exception);                 } catch (invocationtargetexception exception) {                     throw new loadexception(exception);                 }             } 

you can find code in openjfx.

we can see, means, method initialize() has thrown exception, during work..


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -