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
0
votes
0 answers

Spring boot MANIFEST.MF in ServletContext is null

cannot find the reason of such problem. I need to read my MANIFEST.MF file properties and it is always null. This is my maven-jar-plugin in pom.xml: org.apache.maven.plugins
Sviatlana
  • 1,728
  • 6
  • 27
  • 55
0
votes
1 answer

Jar Manifest help: Could not find or load main class

Trying to create an executable jar file - but I can't seem to get the manifest correct manifest file "tdms.mf" Manifest-Version: 1.0 Main-Class: rackserials.tdms Jar creation jar cfvm rackserials.jar tdms.mf *.class assetdata.xlsx added…
David
  • 13
  • 1
  • 7
0
votes
2 answers

What causes jarsigner to overwrite MANIFEST.MF

The question is why is jarsigner sometimes overwriting the MANIFEST.MF file rather than just appending the signing entries to an existing MANIFEST.MF file in the jar that is being signed. Note: I post this as an open ended question and will provide…
Tom Rutchik
  • 1,183
  • 1
  • 12
  • 15
0
votes
0 answers

Java Class not found exception if running from jar, running fine if run from IntelliJ

This is my pom.xml org.apache.maven.plugins maven-jar-plugin
john
  • 1
  • 1
0
votes
1 answer

java.lang.SecurityException: Invalid signature file digest for Manifest main attributes after creating JAR to OSGI bundle

I have converted a jar into OSGI bundle by extracting the jar, changing its MANIFEST.MF file and converting it to bundle using command jar cfm new-6.0.1.jar .\META-INF\MANIFEST.MF . But when I am trying to run the code I am getting error…
Johna
  • 85
  • 1
  • 8
0
votes
0 answers

ServletContext getResourceAsStream does not return root Manifest Files

This might be a duplicate question, but after trying almost all the possible solutions, I am still unable to read the correct manifest file in my war. here is how my war file looks like; META-INF …
Prajakta
  • 89
  • 1
  • 9
0
votes
0 answers

Error running executable jar - Could not find or load main class

In pom.xml , main class is mentioned in maven shade plugin and maven jar plugin to convert akka project into maven and make it an executable jar.enter image description here But after running mvn clean install on that project and java -jar , I get…
Roma Jain
  • 333
  • 4
  • 13
0
votes
0 answers

Spring boot. Reading MANIFEST.MF using jcabi manifests

I'm trying to add AppName and Version to actuator's /info endpoint using jcabi-manifests https://github.com/jcabi/jcabi-manifests library. Code snippet is below: @Component public class VersionInfoContributor implements InfoContributor…
0
votes
2 answers

I cannot install MySQL JDBC driver on Ubuntu 16.04

I downloaded the MySQL JDBC driver to connect Scala to a MySQL database, but I cannot install it with java -jar mysql-connector-java-5.1.45-bin.jar. It says, no main manifest attribute, in mysql-connector-java-5.1.45-bin.jar I cannot find any…
A. N. Other
  • 409
  • 4
  • 14
0
votes
1 answer

What main class should i give in my manifest.mf of a jar file which has an applet without main class?

i am having a applet(not having a main class) and i am having song file (beep.au) and picture file ( a.gif){these 2 files i have used in my applet} and i have created a jar file a.jar which contains the applet class , song file and picture file ...…
Vin
  • 11
  • 1
0
votes
0 answers

How to avoid error message "no main manifest attribute, in MyApp.jar"?

When I try to run a (Vaadin Spring Boot) application I created in Intellij Idea: java -jar MyApp.jar ... I get the following error message: "no main manifest attribute, in MyApp.jar" I tried several of the solutions to this problem provided in…
0
votes
2 answers

Classpath in JAR manifest?

I'm trying to develop a plugin for an FOSS application written by someone else. All I need to do is take a single class I've written, package it in a JAR file, and copy the JAR file to a directory in a pre-existing installation of the…
Mattzees
  • 23
  • 1
  • 3
0
votes
0 answers

IntelliJ IDEA - JAR Manifest.MF incomplete, JAR with eclipse working

I am trying to create a runnable JAR File with IntelliJ. I followed this tutorial: Quickly create Jar artifact for application I have a lot of 3rd party libraries included. Unfortunatelly I got the following error: Error: A JNI error has occurred,…
Levente
  • 161
  • 1
  • 7
0
votes
1 answer

mvn clean package: no main manifest attribute

While the project executes from the IDE, how is the JAR created so that a hello world type console app will actually run? thufir@dur:~/NetBeansProjects/HelloMaven$ thufir@dur:~/NetBeansProjects/HelloMaven$ mvn clean package [INFO] Scanning for…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
0 answers

How to versionise a runnable jar file?

I have a java project. I need to versionise the project while creating the jar file. One way I could find is using the Manifest files. But I can add the version only when I am exporting to Jar file( Not Runnable jar). I am not able to specify a…
manutd
  • 291
  • 1
  • 5
  • 18