Hi there,
I have got a problem confused me. I use IntelliJ IDEA to write a small GUI program with images and icons. If I run it using the IDE, it perfectly runs.
However, when I try to start the program from command line, it runs without showing the images and icons.
I check with IntelliJ IDEA settings. It creats directories as:
There is a top-level folder called 'Test', in which, there are 'res' and 'testpackage' folders. In 'res', there are my images and icons. In 'testpackage', there is my xxx.class file.
If I type:
java testpackage.xxx
from command line, those images and icons won't be included. Also I tried to get the .jar build using IntelliJ IDEA 'Build artifact'; however, the .jar file still start without showing images and icons.
It is quite stupid that compress a .jar without 'res' folder.
Any ideas how to fix this? Cheers.