I have a Java application, running from a jar; I need to show version number in a classic "About..." box (telling "My Application, version 1.0.0", that's all).
Given that I save that string in a MANIFEST.MF file, how do I retrieve it at runtime?
I tried
swVersion = Main.class.getPackage().getImplementationVersion();
but it returns a null. In my jar, under /META-INF/MANIFEST.MF, I have a property like
Implementation-Version: 1.0.0
which is usually a working example, is it?