0
So I made a game on Eclipse and I’m trying to export it to a jar file only that unsuccessfully. The export works, but the images don’t go together at all... Here’s an example of how I’m instantiating the images:
private Image imagem;
ImageIcon a = new ImageIcon("caminho");
imagem = a.getImage();
Yes, the images are inside the SRC folder.
Are the images inside the project? If not, it won’t matter together anyway.
– user28595
Yes they are inside the src folder
– Gregory Lewi
Adds a print of your project hierarchy in the eclipse in the question.
– user28595
Note that the IDE does not recognize the folder as an application package, create a package(package) and re-create the photos for it, and try to re-compile the jar.
– user28595
But the images are inside a package (package images, that’s not a folder)
– Gregory Lewi
Look at the image you posted and compare package with other. Eclipse highlights a package co. The brown color. Readicione the package, it is very likely that the problem is what I have already mentioned.
– user28595