Wednesday 15 February 2012

java - Unable to access change of pictures while in jar file -



java - Unable to access change of pictures while in jar file -

i'm using netbeans , scene builder create little game, , tests have been working on computer, , wanted seek , test on person's computer seek , see how game looked on different screen. when teammate tried load on computer using files netbeans, failed load because said unable access images i'm changing in controllers. same errors when seek run jar file net beans makes project, i'm assuming if prepare that, should prepare other. ideas on making sure jar file till able access images well?

thanks!

ensure images included in .jar (unzip -l xyz.jar)

do not seek open image-files plain files (path access) utilize the

myclass.getclass().getresource(filename)

approach. see a related question "load images jar: null"

java netbeans javafx scenebuilder

No comments:

Post a Comment