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
3,881
questions
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:...
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?
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": [
{
...
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 ...
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: ...
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: ...
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 ...
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:...
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 ...
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 ...
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?
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 ...
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:...
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-...
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 (...
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-...
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....
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....
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.
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 ...
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....
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 ...
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.
...
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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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/...
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?
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 ...
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?
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 ...
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',
...
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' ...
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....
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="...
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 ...
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....
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 ...
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 ...
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....
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
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"...
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:...
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
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 ...
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....
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 / ...