This is very odd. I try to read the META-INF/MANIFEST.MF from the application itself:
URL url = getClass().getResource("/META-INF/MANIFEST.MF");
But the MANIFEST.MF is another one:
jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar!/META-INF/MANIFEST.MF
This worked in the past, but now it locates it in another JAR! Very, very odd.
UPDATED
Tried this as suggested by haraldK but the returned enumeration is empty, so nothing is printed:
try {
Enumeration<URL> manifests = getClass().getClassLoader().getResources("/META-INF/MANIFEST.MF");
while(manifests.hasMoreElements()) {
URL url = manifests.nextElement();
System.out.println("Es: > " + url);
}
} catch (Exception e) {
System.err.println(e.getMessage());
}