Questions tagged [meta-inf]

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.

112 questions
316
votes
12 answers

What's the purpose of META-INF?

In Java, you often see a META-INF folder containing some meta files. What is the purpose of this folder and what can I put there?
Kristian
  • 6,033
  • 6
  • 25
  • 29
93
votes
3 answers

How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?

I'm using SBT (within IntelliJ IDEA) to build a simple Scala project. I would like to know what is the simplest way to build an Uber JAR file (aka Fat JAR, Super JAR). I'm currently using SBT but when I'm submiting my JAR file to Apache Spark I get…
Yves M.
  • 26,153
  • 20
  • 93
  • 125
36
votes
2 answers

Idea to avoid that spring.handlers/spring.schemas get overwritten when merging multiple spring dependencies in a single jar

I got the error Unable to locate NamespaceHandler when using context:annotation-config running (java -jar) a jar assembled by the maven-assembly-plugin and containing my project and all its dependencies. As other people correctly spotted on the…
protoboolean
  • 3,935
  • 4
  • 27
  • 45
35
votes
6 answers

Android Studio: Duplicate files copied in APK META-INF/DEPENDENCIES when compile

I exported my project from Eclipse and imported to Android Studio using the instructions in this link: http://developer.android.com/sdk/installing/migrate.html When I build, I have an error: Duplicate files copied in APK META-INF/DEPENDENCIES After…
TrungNVT
  • 581
  • 2
  • 5
  • 8
30
votes
2 answers

Java Meta-Inf Services

What is the purpose of Meta-INF services in Java ?
dialloc
  • 301
  • 1
  • 3
  • 4
18
votes
1 answer

Maven war has META-INF folder in two places

I'm working on a project which uses JAAS and unfortunately for me Tomcat requires a file to be put in a META-INF folder in the root of the war app.war |__META-INF | |___context.xml ... I think that it's already weird since the default…
Grasshopper
  • 1,659
  • 1
  • 14
  • 29
15
votes
7 answers

Problem "Entry name 'META-INF...' collide - Android

I have added some things to my mobile application, such as adds or animation-lists. The thing is that I could generate APKs perfectly some days ago and, since the moment y added those things, Android Studio does not let me generate them. It has the…
Álvaro Sánchez
  • 151
  • 1
  • 1
  • 3
15
votes
1 answer

Annotation Processors generated resources not packaged to APK

I've custom annotation processor generating factory classes and META-INF/services/factory.interface.class resource. Annotation processor is used in library project and all generated files are packaged correctly into AAR. When I use annotation…
skyman
  • 2,172
  • 14
  • 16
13
votes
1 answer

What is the correct META-INF directory location for context.xml in Tomcat?

Should a "context.xml" file for deploying application-specific configuration to Tomcat be placed in: src/main/resources/META-INF/context.xml ...or... src/main/webapp/META-INF/context.xml ? Justification for asking: Have seen conflicting advice on…
Steve Chambers
  • 31,993
  • 15
  • 129
  • 173
12
votes
2 answers

creating META-INF/services folder in Eclipse

I am trying to create an extensible app in Java and chose to use SPI. According to this tutorial I am following, I am supposed to create a specific file in META-INF/services in my jar, but don't know how. I know how to create jar with META-INF, but…
tom
  • 311
  • 3
  • 4
  • 13
12
votes
5 answers

Using serviceloader on android

I am very new to java and android development and to learn I am trying to start with an application to gather statistics and information like munin does. I am trying to be able to load "plugins" in my application. These plugins are already in the…
silverchris
  • 129
  • 1
  • 4
12
votes
3 answers

META-INF/version duplicate error when using Proguard

Gradle : 4.10.1 Gradle Android Plugin version : 3.3.2 Proguard : 6.0.3 JDK - 1.9 Android Studio 3.3.2 When I try to build apk release version along with Proguard. I get the following error - Caused by: java.io.IOException: Please correct the above…
anirudh
  • 314
  • 3
  • 12
11
votes
2 answers

javax.naming.NameNotFoundException: Name [jdbc/rhwebDB] is not bound in this Context. Unable to find [jdbc]

I know there's many questions regarding this exception, however, I believe I've tried everything for many days, without any luck yet. As this is a production server, I can only work on this after midnight :( I have a Tomcat app. Recently, I've…
Sergio
  • 332
  • 1
  • 4
  • 17
10
votes
3 answers

Maven: include files in JAR's META-INF

I'm using Maven to build a Java project, and I've got a couple files, CHANGELOG and LICENSE, that I'd like to copy to the META-INF directory inside the JAR file. So far what I've got working is the following:
Julián Urbano
  • 8,100
  • 1
  • 28
  • 51
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
  • 82,132
  • 136
  • 114
  • 158
1
2 3 4 5 6 7 8