Currently, I am doing image loading from:
fi.xman3.assets. ( src/fi/xman3/assets/ )
With this code:
public static BufferedImage get(String path) {
BufferedImage img = null;
try {
img = ImageIO.read(new File(path));
} catch (IOException e) {
e.printStackTrace();
}
return img;
}
When I try to run the JAR file from cmd ( java -jar example.jar ), it just starts giving me IOException errors for "File doesn't exist".
Running from Eclipse works without any errors.