manifest

HTML5 offline “Application Cache Error event: Manifest fetch failed (-1)”

依然范特西╮ 提交于 2019-12-18 12:54:31
问题 I'm trying to write an HTML5 offline application but can't seem to get Chrome to accept the cache manifest file. Chrome logs the following output to its console while loading the application: Creating Application Cache with manifest http://localhost/cache.manifest Application Cache Checking event Application Cache Error event: Manifest fetch failed (-1) http://localhost/cache.manifest However, if I remove all lines from the manifest file except for the first line (i.e. "CACHE MANIFEST")

How to load a content script on all Google (international) pages?

北战南征 提交于 2019-12-18 04:47:07
问题 For a Google-Chrome extension, I would like to load a content script on all Google pages. What is the best way to do this? I tried this, in the manifest.json , but it does not work: "matches": ["http://www.google.*/*", "https://www.google.*/*"], This "works" but it is a bit long to write and I do not think it is the best practice: "matches": ["http://www.google.com/*", "https://www.google.com/*", "http://www.google.fr/*", "https://www.google.fr/*", "http://www.google.de/*", "https://www

Which tags are required in the manifest for registration free COM?

你离开我真会死。 提交于 2019-12-17 23:28:06
问题 TL;DR Do all registry entries produced by regsvr32 need to be present in a SxS reg-free-COM manifest and vice versa? I'm trying to get registration free COM going for a third party component. Reading up on the subject, I find that there are several elements mentioned, that can be put into a manifest: From the docs, we can add the following tags to a manifest to describe a COM component: assemblyIdentity - which really just describes the "abstract assembly" as far as I can tell comClass -

“No main manifest attribute” when creating Kotlin jar using IntelliJ IDEA

倖福魔咒の 提交于 2019-12-17 22:01:38
问题 When creating a jar from my Kotlin code and running it, it says "No main manifest attribute". When looking at the manifest.mf, it has this content: Manifest-Version: 1.0 When looking at the file in the source, it has this content: Manifest-Version: 1.0 Main-Class: MyMainClass When manually copying the source manifest to the jar, it runs perfectly. Screenshot of my artifact settings 回答1: If any of the dependent jars has a MANIFEST.MF file, it will override your custom one which defines the

Maven - Can't Execute JAR

◇◆丶佛笑我妖孽 提交于 2019-12-17 21:54:25
问题 After building a sample mvn project, I added my org.restlet dependencies & Java code. Then, I successfully built my JAR via mvn install . Finally, I ran into an error when trying to run the JAR. vagrant$ java -jar target/my-app-1.0-SNAPSHOT.jar Failed to load Main-Class manifest attribute from target/my-app-1.0-SNAPSHOT.jar 回答1: You need to set the main class in the manifest using the maven-jar-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin<

Maven: Packaging dependencies alongside project JAR?

自古美人都是妖i 提交于 2019-12-17 21:53:02
问题 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/dependency1.jar lib/dependency2.jar ..... and create the following directory structure: target |-- .... |-- my-project.jar |-- lib |-- dependency1.jar |-- dependency2.jar Meaning, I want the main JAR to exclude any dependencies and I want all transitive dependencies to get copied into a "lib" sub-directory

Maven Error: Could not find or load main class

谁说我不能喝 提交于 2019-12-17 18:34:07
问题 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 error. Each time it says: Maven Error: Could not find or load main class ... I have this written inside my pom.xml (minus the ??? ) <build> ... <plugins> ... <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.5.3</version> <configuration> <descriptors> <descriptor>src/main/assembly/jar-with

HTML 5 Appcache works in safari/opera/chrome but not firefox

六月ゝ 毕业季﹏ 提交于 2019-12-17 16:27:57
问题 I have an html5 appcache running on a website, it works fine in Safari, Opera and Chrome but it fails to work on Firefox. I have the following in my code: <!DOCTYPE HTML> <html manifest="./manifest.appcache"> <head> and the following manifest.appcache file: CACHE MANIFEST / /accessibility /anchoring /areas-of-application-in-business /calibrating-rep-system-preferences /circle-of-excellence /collapse-anchors /contrastive-analysis-and-mapping-across /convincers /creating-an-air-of-authority

How to embed a manifest file at compile time in Visual Studio 2010

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 15:58:24
问题 I have a project with a manifest file with the following node: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> ...meaning I want it to only run "as administrator" by default. from searching around, to make this work I have two options: "Embed" it. deploy the manifest file with the exe, and name it YourProject.exe.manifest. I've tried option 2, and when I run my app it doesn't ask for admin rights? So, how do I do option 1 in VS2010? I've heard of mt.exe, but this is

Executable war file that starts jetty without maven

与世无争的帅哥 提交于 2019-12-17 15:00:08
问题 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 how to make what I'm looking for: However, following that advice along with how I think I'm supposed to make an executable jar (war) isn't working. I have an Ant task creating a WAR file with a manifest that looks like: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 1.5.0_18-b02