Creating a JAR file with images

Answered

Hello, my project involves creating a jar file with pictures for backgrounds and buttons. However, when I try to create a jar file, it does not do so with the pictures. In other words, when I run the code through the intelliJ IDE the code works and the pictures appear where they are supposed to. But when I open the jar, the pictures don't appear. My project structure is:

ABC

{

.idea

.src

     {

     com.abc

           {

            abc.java

           }

     }

a.jpg

b.jpg

c.jpg

}

 

 

0
1 comment

Make sure pictures are added to artifact under Project Structure | Artifacts: https://i.imgur.com/rD2tN5z.png

0

Please sign in to leave a comment.