I am working on a game and was going to create a jar file of it to send out a beta version to some of my friends so that I would know how the game looks on different resolutions and how it runs on worse and better computers. The problem is that when I run the jar file it will be completely black and nothing will happen.
I think that I have done the path for the images wrong because if i remove all the images from the net beans folder it will look exactly like when I start the jar. I have done the path for the pictures by just writing their name and having them in the same folder as the classes.
The jar file looks like this: Two folders, META-INF and Apocalypse. Inside META-INF is the manifest file, it looks like this:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_17-b02 (Oracle Corporation)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: Apocalypse.Main
Inside the Apocalypse file is all the classes and all of the images, to give an example of how I get the images in the code I get them like this ImageIcon ii = new ImageIcon("Image.png")
I don't have any path to the image but shouldn't this code work if I have the images in the same folder as the classes? How else would do the path to the images (if it is them that is the problem)?