Creating Runnable Jar with external files included
I want to build a runnable jar in java. I need to include some of the files in the jar so that when I execute jar the files are automatically read from the java class. Hence I created a folder in the project and referred these files from the project. I created jar file following some tutorial but I could not able to include these external files in my jar file. Please let me about creating runnable jar with external files. My file struture is Test | | -------src | | | default package | | | | | test1.java | -------FileFOlder | | | | | abc.txt I am accessing abc.txt in test1.java class. My code