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.

manifest
Filter by
Sorted by
Tagged with
1388 votes
46 answers
2.4m views

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:...
Ewoud's user avatar
  • 14.1k
229 votes
8 answers
176k views

How can I fix "unexpected element <queries> found in <manifest>" error?

All of a sudden, I am getting this build error in my Android project: unexpected element <queries> found in <manifest> How do I fix it?
CommonsWare's user avatar
177 votes
3 answers
131k views

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": [ { ...
Alexander Knyazev's user avatar
175 votes
26 answers
156k views

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 ...
Timwi's user avatar
  • 65.9k
143 votes
50 answers
169k views

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: ...
S.P's user avatar
  • 1,835
138 votes
4 answers
38k views

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: ...
Jesper's user avatar
  • 205k
134 votes
2 answers
90k views

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 ...
товіаѕ's user avatar
  • 3,074
131 votes
6 answers
221k views

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 <?xml version="1.0" encoding="utf-8" ?> <asmv1:...
Cocoa Dev's user avatar
  • 9,451
102 votes
2 answers
37k views

Android icon vs logo

The <application> 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 ...
vol's user avatar
  • 1,553
100 votes
13 answers
101k views

Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

When adding permissions to my manifest file, the below xml works. <permission android:name="android.permission.ACCESS_FINE_LOCATION" /> However, this xml doesn't work. <uses-permission ...
Pablo Cegarra's user avatar
96 votes
3 answers
130k views

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's user avatar
  • 1,085
88 votes
5 answers
63k views

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 ...
Wim Coenen's user avatar
  • 66.4k
86 votes
11 answers
340k views

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:...
Roman's user avatar
  • 128k
76 votes
8 answers
122k views

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-...
JeyJ's user avatar
  • 3,842
75 votes
12 answers
120k views

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 (...
Fernando Miguélez's user avatar
65 votes
16 answers
40k views

Java applet manifest - Allow all Caller-Allowable-Codebase

As of Java 7u45 an applet will display a warning message (even if signed with a trusted cert) if a webpage tries to interact with it via javascript and that page isn't listed in the manifest's Caller-...
William W's user avatar
  • 1,796
64 votes
4 answers
43k views

uses-permission vs permission for android permissions in the manifest.xml file

I noticed that there are two types of permissions in the manifest file, "permission" and "uses-permission" like the two shown below; <permission android:name="android.permission....
Kevik's user avatar
  • 9,251
60 votes
7 answers
116k views

Reference jars inside a jar

I have a jar whose content looks as shown below, Below is my manifest file Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.3 Created-By: 1.7.0_06-b24 (Oracle Corporation) Main-Class: org.sai.com....
srk's user avatar
  • 4,924
60 votes
4 answers
21k views

manifest.json vs manifest.webmanifest

I'm developing an application using mongodb, Node.JS and PWA. In the first step of developing I don't know what is the difference between manifest.json and manifest.webmanifest.
Mostafa Ghadimi's user avatar
58 votes
17 answers
156k views

"Manifest: Line: 1, column: 1, Syntax error"

I'm using Vue.js to create a Progressive Web Application (PWA) as a school project. Whenever I host the website with Azure I get "Manifest: Line: 1, column: 1, Syntax error". I don't have ...
Glaxer's user avatar
  • 703
57 votes
6 answers
82k views

Not targeting the latest versions of Android

I have a warning when trying to test theme on latest Android SDK Package 4.2. Here is my manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas....
Edy Developer's user avatar
53 votes
32 answers
59k views

No application found for TargetPlatform.android_x86

This's my first flutter App and for some reason the Android launcher icon stopped showing so I was trying to fix that, I did a bunch of things and ended up with this error. flutter doctor shows ...
Milad Alakaire's user avatar
52 votes
4 answers
25k views

Can I clear a webapp in Chrome?

I've written a webapp that has a manifest that includes all the javascript and images that it requires. Unfortunately, even when I change the manifest file, it doesn't seem to reload the javascript. ...
acuth's user avatar
  • 673
52 votes
9 answers
42k views

Executable war file that starts jetty without maven

I'm trying to make an "executable" war file (java -jar myWarFile.war) that will start up a Jetty webserver that hosts the webapp contained in the WAR file I executed. I found a page that described ...
twilbrand's user avatar
  • 1,350
52 votes
3 answers
52k views

Android / iOS - Custom URI / Protocol Handling

Is there a way to define some kind of handling mechanism in Android and iOS that would allow me to do intercept either of the following: myapp:///events/3/ - or - http://myapp.com/events/3/ I'd like ...
Josh's user avatar
  • 12.5k
52 votes
16 answers
175k views

Maven Error: Could not find or load main class

I'm using a Java Maven program and I don't know what to enter as the <mainClass>. I've tried all kinds of things based off of numerous stackoverflow questions, but they are not solving the ...
MLMLTL's user avatar
  • 1,529
49 votes
3 answers
16k views

Using attributes from API level beyond minSdkVersion

I am new to Android development and am wondering what happens if you use attributes on XML tags from an API level greater than your minSdkVersion. For example having: <uses-sdk android:...
Michael Garner's user avatar
48 votes
7 answers
72k views

How do I read the manifest file for a webapp running in apache tomcat?

I have a webapp which contains a manifest file, in which I write the current version of my application during an ant build task. The manifest file is created correctly, but when I try to read it in ...
Nik Reiman's user avatar
  • 39.7k
47 votes
22 answers
85k views

android:exported added but still getting error Apps targeting Android 12 and higher are required to specify an explicit value for android:exported

I have added android:exported="true" to my only activity in manifest but still getting below error after updating compile sdk and target sdk version to 31.I also tried rebuilding the project ...
Android Developer's user avatar
46 votes
3 answers
52k views

Maven: Packaging dependencies alongside project JAR?

I'd like Maven to package a project alongside its run-time dependencies. I expect it to create a JAR file with the following manifest: ..... Main-Class : com.acme.MainClass Class-Path : lib/...
Gili's user avatar
  • 87.9k
45 votes
10 answers
47k views

reading an application's manifest file?

Is there an easy way to read an application's already embedded manifest file? I was thinking along the lines of an alternate data stream?
Brian R. Bondy's user avatar
45 votes
3 answers
16k views

Program Compatibility Assistant thinks my app is an installer

I have created a .NET C# WinForms application on Win 7 RTM x64, which let's say I have called DataInstaller. When I run this program outside of the debugger (just an empty form with no functionality ...
Carl's user avatar
  • 5,961
44 votes
4 answers
44k views

Android action.MAIN and category.LAUNCHER function

We mention android.intent.action.MAIN and android.intent.category.LAUNCHER as Intent filter of the launcher activity in the Manifest.xml. What is imp. of these two? What are their functionality?
dev_android's user avatar
  • 8,768
43 votes
13 answers
53k views

Runtime error R6034 in embedded Python application

I am working on an application which uses Boost.Python to embed the Python interpreter. This is used to run user-generated "scripts" which interact with the main program. Unfortunately, one user is ...
Michael Cooper's user avatar
43 votes
2 answers
30k views

How can I include package_data without a MANIFEST.in file?

How can I include package_data for sdist without a MANIFEST.in file? My setup.py looks like this: import setuptools setuptools.setup( name='foo', version='2015.3', license='commercial', ...
guettli's user avatar
  • 27.2k
43 votes
1 answer
26k views

What is signing ClickOnce manifests for?

According to Microsoft, you must sign your ClickOnce application. But it seems to me that it works just fine when I publish it without signing it (by turning off the 'Sign the ClickOnce manifests' ...
Juan's user avatar
  • 15.5k
43 votes
3 answers
21k views

How to use different package names between flavors?

I'm trying to create a single project with 2 flavors: free and pro (versions). My app is already in PlayStore with different packages (E.g.: com.example.appfree and com.example.app) This is my build....
Felipe Porge Xavier's user avatar
43 votes
2 answers
81k views

What is the difference between "asInvoker" and "highestAvailable" execution levels?

I've been wondering what the difference between embedding <requestedExecutionLevel level="asInvoker" uiAccess="false" /> and <requestedExecutionLevel level="highestAvailable" uiAccess="...
nathan's user avatar
  • 4,672
42 votes
0 answers
2k views

How to make a composite manifest for Microsoft smooth streaming

I am new to Microsoft Smooth Streaming and have questions about the making of composite manifests. Following the guidance from here. I was able to make a composite manifest of a single clip element ...
Lich's user avatar
  • 671
41 votes
4 answers
72k views

Generate manifest class-path from <classpath> in Ant

In the build file below, the jar target refers to the jar.class.path property for the manifest class-path. The compile target refers to project.class.path There is redundancy here, because jar.class....
amarillion's user avatar
  • 24.8k
41 votes
1 answer
33k views

How do I add an Implementation-Version value to a jar manifest using Maven?

I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number. I can't for the life of me work out how to do this using the jar plugin. Is this ...
izb's user avatar
  • 50.9k
41 votes
2 answers
8k views

Setting "task affinity" programmatically

is there a way to set the "task affinity" programmatically? I mean like with some Intent flag or sth? I didn't find anything about this being possible in the Android docs. Setting the affinity in a ...
aMiGo's user avatar
  • 767
40 votes
3 answers
42k views

How do I add a manifest to an executable using mt.exe?

I'm trying to use mt.exe from the Windows SDK to add a manifest to an executable file that doesn't have one, using the following command line: C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl....
Colen's user avatar
  • 13.6k
40 votes
1 answer
15k views

What is the graft command in Python's MANIFEST.in file?

I found a Python project with a MANIFEST.in file. I can guess at the meaning of much of it, but I am unclear on the meaning of the line: graft tools
Michael Felt's user avatar
39 votes
2 answers
51k views

Content Security Policy in Chrome App

My Chrome app has the following manifest: { "name": ", "version": "1.0.3", "manifest_version": 2, "description": "Chrome Extension for.", "icons": { "16": "images/test.png"...
user avatar
38 votes
8 answers
104k views

no resource found that matches the given name

This: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.androidbuch.rechner" android:versionCode="1" android:...
sam's user avatar
  • 383
37 votes
6 answers
64k views

How to force my C# Winforms program run as administrator on any computer?

How to force my C# Winforms program run as administrator on any computer ? and any kind of OS ? I need code solution (any sample code will be excellent) Thanks in advance
Gold's user avatar
  • 61.5k
37 votes
27 answers
78k views

Didn't find class on path: DexPathList?

My app is working fine when I test in real device using USB in android studio.But When I send the apk to another device and install there,it is not working.App get crashed.I did not find any right ...
Avijit's user avatar
  • 697
37 votes
4 answers
70k views

Android BroadcastReceiver, auto run service after reboot of device

Hello i am writing an application, which is when the phone reboot, the service will auto start instead of click on the application. Here is my code for BootCompleteReceiver.java package com....
BangBoat's user avatar
  • 435
33 votes
3 answers
56k views

Android Manifest's android:exported="false" prevents app from running on device

Good day, In my simple Andorid app which is really just a webview app, I added android:exported="false" in Android Manifest to avoid the Exported service without permissions warning / ...
Hofuzz's user avatar
  • 459

1
2 3 4 5
78