Search code examples
javajarmanifestmeta-inf

What are files located in *.jar/META-INF/*.*?


I found that c.tld file of jstl-1.2.jar is located in META-INF/*.* inside this jar. How to access these files from code in this jar? Just with getResourceAsStream("/META-INF/c.tld")? Or META-INF has special processing rules?


Solution

  • It's ok to get the content of the c.tld using getResourceAsStream. Just do not change it and write back to the file.

    https://stackoverflow.com/a/70253/32090