Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
1429 votes
46 answers
2.6m 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.5k
228 votes
8 answers
183k 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
185 votes
3 answers
146k 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
183 votes
27 answers
169k 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
  • 66.8k
154 votes
2 answers
104k 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,364
145 votes
51 answers
176k 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,855
140 votes
6 answers
239k 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,591
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
  • 208k
109 votes
13 answers
109k views

Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

When adding permissions to my manifest file, the below XML content works. <permission android:name="android.permission.ACCESS_FINE_LOCATION" /> However, this XML content doesn't work....
Pablo C. García's user avatar
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
97 votes
3 answers
134k 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,093
89 votes
5 answers
65k 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
86 votes
11 answers
341k 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
  • 132k
83 votes
8 answers
137k 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
  • 4,140
79 votes
11 answers
125k 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
74 votes
4 answers
27k 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
70 votes
18 answers
178k 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
  • 823
65 votes
16 answers
41k 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,826
64 votes
4 answers
45k 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,391
60 votes
7 answers
117k 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
  • 5,196
58 votes
6 answers
89k 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
57 votes
34 answers
77k 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
56 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
  • 811
53 votes
3 answers
53k 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.6k
53 votes
17 answers
193k 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,549
52 votes
4 answers
26k 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,370
50 votes
3 answers
17k 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
22 answers
96k 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
48 votes
7 answers
73k 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
  • 40.7k
46 votes
10 answers
50k 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
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
  • 90.9k
45 votes
4 answers
47k 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,858
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
  • 6,020
44 votes
13 answers
54k 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
44 votes
1 answer
28k 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.8k
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.6k
43 votes
3 answers
23k 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
86k 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,772
42 votes
3 answers
44k 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
  • 14k
41 votes
4 answers
73k 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
41 votes
1 answer
35k 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
  • 52.2k
41 votes
1 answer
17k 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
41 votes
2 answers
9k 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
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
105k 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
27 answers
83k 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
71k 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
36 votes
6 answers
67k 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
  • 62.9k
36 votes
2 answers
35k views

What's the usage of tools:targetApi="m"?

I have an app uses clearText between Android-client and server using Retrofit, and in Android 9+ it's not allowed to use clearText. To ignore that I added android:usesCleartextTraffic="true" ...
Mahdi Moqadasi's user avatar

1
2 3 4 5
78