Jar file has Data file in it...How do I get to it?
I misposted this in the NetBeans section thinking it was a netbeans issue but I believe it's more related to Java Web Start and directory nomenclature.
when I do this:
Code:
InputStream is = resourceMap.getClassLoader().getResourceAsStream(" bidit" + System.getProperty("file.separator") + "resources" + System.getProperty("file.separator") + "Eqps.txt");
The program will run using the jar file. However, when I use Java Web Start it can't find the file. If I do this:
Code:
InputStream is = resourceMap.getClassLoader().getResourceAsStream(" bidit/resources/Eqps.txt");
it works both with java web start and the jar execution. But with the above example, I'm afraid it might not work on non windows directory structures such as Mac and linux. Anyone know if that would work above or why the top method doesn't work in javawebstart and does in the jar?