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]
125 questions
4
votes
1 answer
Modifying system apps: original AndroidManifest.xml required, but why?
The basic steps for editing a system APK:
Make a backup of the APK.
Decompile working APK.
Makes changes.
Recompile working APK.
Copy/paste both the META-INF folder and AndroidManifest.xml from
the backup APK (which was never decompiled) into the…

ikjadoon
- 143
- 1
- 5
3
votes
2 answers
How do I package a web fragment in a jar with Netbeans and Maven
When selecting a new maven project from the Netbeans New Project Menu, there is the option to create a Web Application, or a Standalone Application. I'd like to create a Class Library for use with a Web Application.
How would you recommend I go…

sparkyspider
- 13,195
- 10
- 89
- 133
3
votes
3 answers
Ant Build Jar without META-INF
How to build jar using ant without META-INF folder? I have not specified any manifest attribute in:
…

Tapas Bose
- 28,796
- 74
- 215
- 331
3
votes
1 answer
What is Java jar META-INF/DEPENDENCIES and How its created?
I see in my jar that we have META-INF/DEPENDENCIES file.
// ------------------------------------------------------------------
// Transitive dependencies of this project determined from the
// maven pom organized by organization.
//…

Sherein
- 947
- 1
- 11
- 23
3
votes
1 answer
Spring.factories in META-INF folder not added to "target" folder after packaging jar (springboot app)
I'm trying to use EnvironmentPostProcessor in order to load some docker secrets into the application properties.
I have a META-INF folder with a spring.factories file to bind the EnvironmentPostProcessor implementation, the META-INF folder is…

robinmanz
- 361
- 1
- 5
- 17
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…

awesomemypro
- 531
- 1
- 11
- 32
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.

Bewang
- 453
- 3
- 18
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…

Thufir
- 8,216
- 28
- 125
- 273
3
votes
1 answer
ServiceLoader and META-INF/services generator between different modules in maven?
I would like to use service ServiceLoader between diferrent modules in a maven Project. I have a parent module called iMage. In the parent module there is a module with a name jmjrst.main and it has a public abstract class called JmjrstPlugin.
Then…

Armin Beda
- 109
- 9
3
votes
3 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…

user1378063
- 263
- 1
- 6
- 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…

quartaela
- 2,579
- 16
- 63
- 99
3
votes
1 answer
How to place context.xml in war's META-INF?
I am building a webapp through Gradle's war plugin. In order to disable Tomcat's session persistence, I need to place the file context.xml in the META-INF directory of the war's root.
I attempted the following:
Create the file…

blubb
- 9,510
- 3
- 40
- 82
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/
…

IAmYourFaja
- 55,468
- 181
- 466
- 756
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?

Suzan Cioc
- 29,281
- 63
- 213
- 385
2
votes
1 answer
More than one file was found with OS independent path 'META-INF/proguard/coroutines.pro'
when i migrate andoird project to androidx it gives error More than one file was found with OS independent path 'META-INF/proguard/coroutines.pro'.
I searched a lot but no one solution can't work.please provide code if any solution found.
Thank you.

Akanksha Kansara
- 21
- 2