I am developing a Java Application which I would like to Convert into a JAR file. Within the main project directory I have an image which is used in the application, but when I convert the project to JAR form the application cannot find the file.
When I build the JAR, the image is placed in the directory with the JAR, not inside it, although I've tried placing the file inside the JAR file as well. Inside my Java code the image is simply referenced as "image.jpg". Does anyone know how to fix this exception?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!