file within jar
I created a jar file for my application using eclipse
within my project i have some file my application uses as images
i have a issue with the path to write to access those files
currently although all those files are already in the jar i have to create a folder duplicate those files and copy the jar in that folder to be able to use my resources.
to be more specific assuming i have
Package1
Package1.class1
Package2
Package2.image
what will be the path to write in class1 to open the image file?
I print out the directory while the program is running and it is the directory in which the jar file is
so i use this path
./myproject.jar/package2/images
in class1 code but it can not find the file(no such file error)
My question is what is the path to write in class1 to open a file located in package 2
Thanks

