I\'m trying to acces a File inside the .jar. In Netbeans, this:
System.out.println(new File(this.getClass().getResource(\"Image.jpg\").getFile()).exists());
The file is packed, try
resource.getInputStream()
or
InputStream streamOfYourImg = this.getClass().getRessourceAsStream("com/package/resources/image.jpeg");
Hope it helps