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
8
votes
2 answers
Can I have the META-INF folder into src/main/resources of a Spring command line application?
I am working on a batch aplication implemented using Spring.
In this application I found the following structure:
BATCH PROJECT
|
|
|------> src/main/java (containing the packages)
|
|------> src/main/resources
…

AndreaNobili
- 40,955
- 107
- 324
- 596
8
votes
1 answer
Using `META-INF/services` for internal plumbing of driver
I develop the Jaybird JDBC driver, and today I came across an issue (JDBC-325, How to configure Jaybird with hibernate) that is related to how Jaybird loads some of its components and how - in this case - NetBeans restricts classloading.
The issue…

Mark Rotteveel
- 100,966
- 191
- 140
- 197
7
votes
2 answers
Where do I put META-INF in Gradle?
I'm following the Appsrox tutorial on how to Create an Instant Messaging app using Google Cloud Messaging (GCM). The differences are that I use Android Studio instead of Eclipse, and Gradle for build automation. I've tried to put META-INF inside…

naXa stands with Ukraine
- 35,493
- 19
- 190
- 259
6
votes
0 answers
"cert.rsa" file can not be found in the android APK
I want to check the certificate used in the android APK file,so I used the follow command to print the info of certificate:
unzip -p name-app.apk META-INF/CERT.RSA | keytool -printcert
But,it said "filename not matched: …

Nice One A
- 81
- 1
- 9
6
votes
1 answer
Two Meta-Inf folders - normal structure?
I just "discovered" that we have two Meta-Inf folders ... In eclipse and also in the War file.
The First one is (in the war):
/META-INF/
The Second, and weird one ist:
/WEB-INF/classes/META-INF/
In the second folder is a persistance.xml and a…

Nick Russler
- 4,608
- 6
- 51
- 88
6
votes
1 answer
Maven concat/merge META-INF/service/file of two dependencies using maven?
G'day!
I have two dependencies in my project that are overwriting each others config-files within META-INF/services/xxx.
Is there some procedure to merge/concat these two configs files instead of overwriting?
Any ideas are well appreciated!
user1697823
5
votes
0 answers
How to list files inside a JAR?
I have a Java application that uses a JAR. The JAR has some resource files which it accesses from its own class.
In the jar, this lists the resource files present in the targets/classes folder:
ClassLoader loader =…

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

NathanPB
- 685
- 1
- 7
- 22
5
votes
2 answers
Eclipse not generating META-INF for .ear
I'm trying to add a web project to my ear, but eclipse won't generate the /EarContent/META-INF.
What I do:
Web project test_web_project_1 already created.
New->Enterprise Application Project, create ear.
Right Click->Properties-> Deployment…

dwjohnston
- 11,163
- 32
- 99
- 194
5
votes
4 answers
Compressing an Extracted Jar File
I have extracted a jar file and made some change on it. Now, how can i compress again it as an executable jar file?
Thanks.(Sorry for my bad english.)

Fatih Yakut
- 301
- 1
- 4
- 16
5
votes
1 answer
Keep 'META-INF/services'-files in apk
I have a custom charset which is already working on JavaSE.
The class of my CharsetProvider is specified in a file java.nio.charset.spi.CharsetProvider which is located in META-INF/services and everything get's loaded normally and works as…

AlexS
- 5,295
- 3
- 38
- 54
4
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…

eastwater
- 4,624
- 9
- 49
- 118
4
votes
1 answer
Which context.xml is used First
On my Tomcat 6.0.x I have a context.xml file in the conf directory and I also have a context.xml in the META-INF directory of a project deployed from netbeans6.9.1.
The context.xml contains the details of database to be connected...
Which among the…
user733230
4
votes
3 answers
Add .mf & .xml files in META-INF directory inside a Maven built EAR
I have arbitrary .xml & .mf files that i have to add in the META-INF folder inside the ear itself. Build is done using maven2.2.1. Simply adding those files under ${basedir}/src/main/application/META-INF/ works fine, but it doesn't fit my needs. Is…

b-lieve
- 139
- 1
- 2
- 7
4
votes
3 answers
Ant Contrib If for optional JAR META-INF
I have a scenario where I'm trying to reuse the same build.xml file across multiple projects. In each case, the finaly target is a dist that JARs everything up. The only difference is that some of the projects have a src/main/java/META-INF/*…
user1768830