Questions tagged [manifest.mf]

In software packaging, it is common to list the contents of a distribution in a manifest file

This file simply enumerates the files which are included in the distribution, either for processing by various packaging tools, or for human consumption.

The term is a loan from shipping, where a ship's manifest would list the crew or cargo of a vessel.

The manifest may optionally contain a cryptographic hash or checksum of each file. By creating a cryptographic signature for such a manifest file, the entire contents of the distribution package can be validated, as altering any of the files will invalidate the checksums in the manifest file.

The manifest files usually have .MF extension.

337 questions
2
votes
1 answer

How do I check if a class is in included in the manifest classpath?

I have some jars being referenced by classpath JVM arg (-cp) and other referenced by a pathing jar that includes additional jars via a Manifest file. At runtime, how can I check the presence of a class that scans the -cp jars as well as those…
Darth Ninja
  • 1,049
  • 2
  • 11
  • 34
2
votes
0 answers

Websphere deployment application name

When doing WAR deployment on IBM Webspehere 8.5 it is possible to set Application name and Application Build ID By default Application Name is the WAR filename and Application Build ID is set to Unknown. I know i can set Application Build ID using…
sgargel
  • 986
  • 2
  • 11
  • 29
2
votes
2 answers

Manifest error lanching spring-boot as java application

I can't run my Spring Boot application in my eclipse 3.9.0RELEASE. It runs fine if launched on Prompt with the command: mvn spring-boot:run But I prefer using my Spring Client instead of the Command Prompt, and when I try to run it, doing: Run…
user2298581
  • 532
  • 3
  • 11
  • 37
2
votes
1 answer

Why can I load a class from a JAR but not a resource?

I'm using a JAR which contains only a ClassPath element to build the classpath for my Java app and I've encountered a weird behavior: I can load classes from the JARs mentioned in the ClassPath element but some (or all) resources are…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
2
votes
2 answers

How to get the right manifest from project with multiple modules? [JAVA]

I want to get to read from the Manifest of my Jar file to get the SVNVersion info from there and show it in the UI. I work on a multi-module project that includes a client, a server running on tomcat, some modules of the client and its…
SHPstr
  • 91
  • 9
2
votes
0 answers

How to fix `java.io.IOException: invalid manifest format (Webservice)` with Wildfly 10?

17:38:34,739 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."axiswebservice.war".STRUCTURE: org.jboss.msc.service.StartException in service…
ROHIT
  • 185
  • 1
  • 3
  • 17
2
votes
2 answers

Adding Spring Configuration File to classpath via Manifest file

I have a WAR project and I am trying to store spring configuration files within the /WebContent/WEB-INF/Spring/ folder (as required by my employer), but when I do that I have not found a way to be able to reference those files within my junit tests.…
jwmajors81
  • 1,430
  • 4
  • 20
  • 36
2
votes
2 answers

Reading My Own Jar's Manifest Take 2

This is in response to the near-universally accepted answer to an old question. Since the answer is rather old (2009) and since it isn't working for me, I thought I'd ask to see if anyone knows why. My use case is developing a gradle plugin for…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
2
votes
2 answers

Reading android MANIFEST.MF file

Is there a way to read META-INF\MANIFEST.MF file of the currently running application using Android API? I want to read SHA1 for classes.dex file and use it as an encrpytion key to one of my assets. I cannot use the signature for .apk file because…
Szere Dyeri
  • 14,916
  • 11
  • 39
  • 42
2
votes
2 answers

Create jar file that can be executed on any machine

I have simple java app that prints `hello world!' on console. It is packed in app.jar. Jar structure: main/Hello.class - my main class with singe println method META-INF/MANIFEST.MF Manifest file contains following: Manifest-Version:…
Jeriho
  • 7,129
  • 9
  • 41
  • 57
2
votes
1 answer

Frustrated with Latest Java Version, Spring Context does not load

Thanks in advance to any one who reads this and can help. I have an existing code base that I have to update to Java8, it runs in AWS EB. So I am trying to run it under a Java8 + Tomcat8 ami. When the app starts up, Spring throws an error on…
Griff
  • 1,796
  • 3
  • 23
  • 48
2
votes
1 answer

java.lang.SecurityException: JAR manifest requested to run in all-permissons only

We have a Swing application which downloaded through Java Web Start and runs on local machine. But after automatic launching of the downloaded JNLP file an error occurs: Application Blocked by Security Settings Name: Somename Location: …
user4473987
2
votes
1 answer

Is there any limitation on the length of the classpath in java?

I tried to set classpath from command line for a java class java -cp lib1.jar;lib2.jar;lib3.jar MyProgram The above code threw runtime exception as it has further dependency with other jar file when I added the jar file it is unable to…
tourist
  • 4,165
  • 6
  • 25
  • 47
2
votes
2 answers

Eclipse RCP and Apache CXF

I'm trying to use Apache CXF in an Eclipse RCP application. One plugin (X) would provide an OSGI service which uses CXF. Another plugin (Y) would call this service. The "X" plugin uses the CXF JAR's I downloaded (CXF 2.7.11) which I added to the…
breakline
  • 5,776
  • 8
  • 45
  • 84
2
votes
1 answer

Application-Name or Applet-Name?

If I got it right, the txt file that I should add to the manifest file has to look something like this: (using this tutorial:How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app?) Permissions: kind of…
Atlantis
  • 592
  • 5
  • 23