Displaying version and date of build in the xhtml page from manifest in run time

81 views Asked by At
            Enumeration<URL> resources = getClass().getClassLoader()
                            .getResources("META-INF/MANIFEST.MF");

//Can't find resource name META-INF/MANIFEST.MF ?

1

There are 1 answers

0
Kim Kimo On BEST ANSWER

The correct resource name is /applications/ProjectName/META INF/MANIFEST.MF . Replace ProjectName with your project name. Updated the code according below: . . Enumeration resources = getClass().getClassLoader() .getResources("/applications/ProjectName/META INF/MANIFEST.MF"); . .