The exact same code, while run in netbeans, works 100% but when I run it in a JAR file, it can’t find the file. I use this code to locate it:
LifeFactory.initFactory(getClass().getResource("/renoria/resources/data/Mob").getFile());
MapFactory.initFactory(getClass().getResource("/renoria/resources/data/Map").getFile());
Both of those work when I’m in NetBeans, but they fail when I run it in CMD java -jar “…”
Help me please.
