I have a source directory called DIR. Data contains a large 130Mb file called DATA (35Mb when its exported to an executable Jar).
In the src directory, I have a package called PACK, and it contains a main method and a bunch of classes. One of those classes reads the file from data using
DATA is set to export to the default path, which is /bin.
When launching from Eclipse, Eclipse creates an absolute path (it prints "Path: /C:/__/__/bin/DATA" and "Type: plain/text"), and the applications runs great.
When export exporting my project to an executable jar, Eclipse generates a jar file resembling:
I have wasted a whole day on this one issue of getting the application to read the content of the file from the executable jar. I have also tried JarFile(String) instead of File(String) with same error. Please help.