0

My application moved from jdk6 to jdk8, netbeans 6 to NB 8. In netbeans I am able to see application background image but when i create jar and launch app with jar i.e java -jar appName.jar

Everything working fine, just background image is NOT showing, instead I am getting blank background what I set in form(0,0,0) i.e black.

Please suggest is any property is set or overwrite. New to java UI

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
ashmalvi
  • 33
  • 3
  • is your image packaged within the jar ? – JEY May 17 '17 at 11:34
  • yes, it is under src\resources\icon folder, where all other images are stored and shown. – ashmalvi May 17 '17 at 11:43
  • 1
    Post a [mcve].. – user1803551 May 17 '17 at 11:54
  • 1
    Did you ever create a Jar using JDK 6 NB 6? Note: 1) Narrow the factors down. 2) Application resources will become embedded resources by the time of deployment, so it is wise to start accessing them as if they were, right now. An [tag:embedded-resource] must be accessed by URL rather than file. See the [info. page for embedded resource](http://stackoverflow.com/tags/embedded-resource/info) for how to form the URL. – Andrew Thompson May 17 '17 at 12:26

0 Answers0