Questions tagged [manifest]

A manifest is a file containing metadata about an application, data file or assembly. Generally an ambiguous tag, try and use a more specific one.

On the Java platform, a Manifest file is a specific file contained within a JAR archive. It is used to define extension and package related data. It is a metadata file that contains name-value pairs organized in different sections.

On the Microsoft .NET platform, manifests are XML files that accompany and describe side-by-side assemblies or isolated applications. Manifests uniquely identify the assembly through the assembly's assemblyIdentity element. They contain information used for binding and activation, such as COM classes, interfaces, and type libraries, that has traditionally been stored in the registry. Manifests also specify the files that make up the assembly.

Use to tag questions about the AndroidManifest.xml file which is used to describe the contents of Android apps.

3843 questions
1364
votes
46 answers

Can't execute jar- file: "no main manifest attribute"

I have installed an application and when I try to run it (it's an executable jar) nothing happens. When I run it from the command line with: java -jar "app.jar" I get the following message: no main manifest attribute, in "app.jar" Normally, if I…
Ewoud
  • 13,845
  • 5
  • 18
  • 23
224
votes
7 answers

How can I fix "unexpected element found in " error?

All of a sudden, I am getting this build error in my Android project: unexpected element found in How do I fix it?
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
172
votes
27 answers

What does MissingManifestResourceException mean and how to fix it?

The situation: I have a class library, called RT.Servers, containing a few resources (of type byte[], but I don't think that's important) The same class library contains a method which returns one of those resources I have a simple program (with a…
Timwi
  • 65,159
  • 33
  • 165
  • 230
168
votes
3 answers

What is public/manifest.json file in create-react-app?

I know that chrome extensions use 'manifest.json`, but here, it is used as something else as well. contents - { "short_name": "React App", "name": "Create React App Sample", "icons": [ { "src": "favicon.ico", "sizes":…
Alexander Knyazev
  • 2,692
  • 4
  • 15
  • 25
138
votes
4 answers

What is a Manifest in Scala and when do you need it?

Since Scala 2.7.2 there is something called Manifest which is a workaround for Java's type erasure. But how does Manifest work exactly and why / when do you need to use it? The blog post Manifests: Reified Types by Jorge Ortiz explains some of it,…
Jesper
  • 202,709
  • 46
  • 318
  • 350
137
votes
50 answers

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED?

I am developing a small application that lists all the applications present/ installed on the android device. But I'm getting the below error while i'm trying to run the code. Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Please can…
S.P
  • 1,775
  • 5
  • 14
  • 21
128
votes
6 answers

How do I create/edit a Manifest file?

I have this code from a coworker (probably got it from the web somewhere) but he's out on vacation and I need to add this to the manifest file
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
121
votes
2 answers

When and how does a PWA update itself?

As far as I know, once you click "add to homescreen" on a PWA's website, the browser generates an .apk using the provided manifest file and sources and installs it like a normal app. I noticed that when I update the website, the app also displays…
102
votes
2 answers

Android icon vs logo

The tag for the Android Manifest contains a logo attribute which I have never seen before. What is the difference between your application's icon and its logo? Is it used purely for market?
vol
  • 1,533
  • 3
  • 13
  • 18
96
votes
3 answers

Apply a theme to an activity in Android?

I know how to apply a theme to a whole application, but where would I go to apply a theme to just a single activity?
Willy
  • 1,055
  • 2
  • 8
  • 6
92
votes
13 answers

Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

When adding permissions to my manifest file, the below xml works. However, this xml doesn't work.
Pablo Cegarra
  • 20,955
  • 12
  • 92
  • 110
88
votes
5 answers

Generate manifest files for registration-free COM

I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as…
Wim Coenen
  • 66,094
  • 13
  • 157
  • 251
86
votes
11 answers

Why has it failed to load main-class manifest attribute from a JAR file?

I have created a JAR file in this way jar cf jar-file input-files. Now, I'm trying to run it. Running it does not work (jre command is not found): jre -cp app.jar MainClass This does not work either: java -jar main.jar (Failed to load Main-Class…
Roman
  • 124,451
  • 167
  • 349
  • 456
75
votes
8 answers

SpringBoot no main manifest attribute (maven)

When running my jar file: java -jar target/places-1.0-SNAPSHOT.jar I'm getting the next error : no main manifest attribute, in target/places-1.0-SNAPSHOT.jar The pom.xml contains the spring-boot-maven-plugin:
JeyJ
  • 3,582
  • 4
  • 35
  • 83
74
votes
13 answers

Command line tool to dump Windows DLL version?

I need a command line tool to dump standard Windows DLL version info so I can process it by means of a bash script (Cygwin). As a Java developer I am not very used to Microsoft development tools (though I have a little bit of experience with…
Fernando Miguélez
  • 11,196
  • 6
  • 36
  • 54
1
2 3
99 100