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?
Java, JAR, Ant Build
November 11, 2009 5:03 PM
November 11, 2009 8:37 PM