The META-INF directory related to .jar file contain the manifest (list of contents) of a jar and is created when you write a jar file.
Questions tagged [meta-inf]
112 questions
3
votes
3 answers
Can't locate resource file in JAR
I have a class in my Java application, which reads a resource folder which is located in src/main/resources. So, in that class, I am specifying the resource folder as:
public static final String RES_LOCATION = "./src/main/resources";
The program…
![](../../users/profiles/11219240.webp)
awesomemypro
- 440
- 3
- 20
3
votes
4 answers
Problems on evaluating Kotlin inside JVM with javax.script.ScriptEngineManager
I'm trying to evaluate Kotlin code inside JVM using the Java Scripting API.
try {
ScriptEngineManager().getEngineByExtension("kts").let {
it.eval("val f: (CommandContext.()->Any?) = {\n${this.args.joinToString(" ")}\n}; return f") as…
![](../../users/profiles/9893963.webp)
NathanPB
- 503
- 3
- 16
3
votes
3 answers
How to add META-INF/context.xml in Warbler
How can I add META-INF/context.xml into the war? I didn't find any config entry in config/warble.rb.
![](../../users/profiles/618439.webp)
Bewang
- 373
- 2
- 16
3
votes
1 answer
how to load a properties file from the META-INF directory?
Is it correct to say that properties files used in execution by a running JAR best belong in META-INF? The notion being to fit with the Standard Directory Layout specified by Maven.
Assuming that structure is desired, how is the properties file…
![](../../users/profiles/262852.webp)
Thufir
- 7,241
- 18
- 103
- 236
3
votes
2 answers
ServiceLoader.load is not finding the META-INF/services
So I want to build an extensible android application where developers can add 'CustomDevice' classes and the main program will run them automatically without editing existing code.
I've read about Service Provider interface and thought that would be…
![](../../users/profiles/1378063.webp)
user1378063
- 263
- 5
- 9
3
votes
1 answer
My web app works only with META-INF instead of WEB-INF including beans.xml. Why?
I am working on examples of Dependency Injection in java, and most of the documents highlights that I have to put an empty beans.xml in
META-INF if it is a jar application
WEB-INF if it is a web application
So, I use war type packaging but, my…
![](../../users/profiles/743898.webp)
quartaela
- 2,289
- 14
- 52
- 89
3
votes
1 answer
Google App Engine WEB-INF and META-INF
When you create a new Web Application Project using the Google-Eclipse plugin, it creates an entire project directory structure for you, including:
src/
META-INF/
jdoconfig.xml
persistence.xml
war/
WEB-INF/
lib/
…
![](../../users/profiles/892029.webp)
IAmYourFaja
- 50,141
- 159
- 435
- 728
2
votes
2 answers
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?
![](../../users/profiles/1171620.webp)
Suzan Cioc
- 26,725
- 49
- 190
- 355
2
votes
0 answers
Proguard: how to proguard META-INF/services interface and impl names?
Proguard: how to proguard META-INF/services interface and impl names for service loader?
e.g.
META-INF/services/com.example.Foo
com.example.impl.FooImpl
Is there a way for proguard to obfuscate the interface and impl class names? i.e. their class…
![](../../users/profiles/8292769.webp)
Sunnyday
- 2,252
- 1
- 17
- 46
2
votes
2 answers
Can META-INF be used in an exploded classes folder (e.g. not within a JAR)?
I would like to overide the META-INF/services there, will it work without a jar?
![](../../users/profiles/239168.webp)
Eran Medan
- 41,875
- 56
- 175
- 268
2
votes
1 answer
ServiceLoader and META-INF/services generator between different modules in maven?
I would like to use service ServiceLoader between diferrent moduls in a maven Project. I have a parent modul called iMage. In the parent modul there is a modul with a name jmjrst.main and it has a public abstract class called 'JmjrstPlugin'.
Then…
![](../../users/profiles/7494942.webp)
Armin Beda
- 89
- 9
2
votes
2 answers
jarsigner: java.lang.SecurityException:SHA1 digest error for META-INF/CERT.RSA android error while updating application
I am getting this error while i am updating my android application, i tried signing new Application on same system there is no problem with that,
when updating the same application i got this error.
I need help, i searched but nothing worked for…
![](../../users/profiles/5180613.webp)
piyush singh
- 335
- 5
- 23
2
votes
1 answer
INSTALL_PARSE_FAILED_NO_CERTIFICATES on Android L
I've added an empty file to the META-INF of my apk, For Android 4.3, it was installed as usual, but when when i installed it on Android 5.0.2, it failed with INSTALL_PARSE_FAILED_NO_CERTIFICATES.
![](../../users/profiles/5196469.webp)
B. Chen
- 21
- 4
2
votes
1 answer
How do I copy a file into my WAR's META-INF directory?
I’m using Gradle 2.7. I would like to copy an environment-specific file (context.xml) into my WAR’s META-INF directory (which is at the same level as WEB-INF). I have this task set up in my build.gradle file
// Copy context.xml into the…
![](../../users/profiles/1235929.webp)
Dave
- 17,420
- 96
- 300
- 582
2
votes
0 answers
Removing a jar files META-INF folder in Java
I am using the following method to filter out META-INF folder and its contents:
public static void copyWithoutMetaInf(final String originalZip, final String newZip) throws IOException
{
final ZipInputStream zip = new ZipInputStream(new…
![](../../users/profiles/3952266.webp)
Hugh Macdonald
- 143
- 1
- 10