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

Why can't I read MANIFEST.MF file generated by maven when packaging jar?

I have two separate projects: one is spring-boot with jar packaging, and one is a non-spring-boot app with war packaging. In my spring-boot application, I use maven-jar-plugin to generate MANIFEST.MF with custom entries like following:
0
votes
0 answers

Manifest attribute error when running a java jar despite having manifest file

I am trying to run a java executable jar from command line but it is throwing below error. Commandline java -jar myapp.jar com.avc.apb.printbatch.printfileuploadapplication Error no main manifest attribute, in myapp.jar It is very confusing because…
Saimuga
  • 255
  • 1
  • 5
  • 16
0
votes
0 answers

Access MANIFEST.MF attributes from jsp or servlet

Possible Duplicate: How do I read the manifest file for a webapp running in apache tomcat? Is there a way to access the attributes of the META-INF/MANIFEST.MF from a jsp or a servlet?
feniix
  • 1,558
  • 2
  • 21
  • 35
0
votes
2 answers

java project, should MANIFEST.MF files be added to source control or ignored?

Something is creating MANIFEST.MF files in the java project, which contain this: Manifest-Version: 1.0 Class-Path: Should these be added to git, or ignored?
John Little
  • 10,707
  • 19
  • 86
  • 158
0
votes
0 answers

Why do l get null, when l try to get the implementationversion() in java?

When I run my program, the following code returns a null ConsoleApp.class.getPackage().getImplementationVersion() However, when I copy the JAR file to another folder outside my project's folder and execute it on the console, it returns the version…
armel
  • 299
  • 3
  • 14
0
votes
0 answers

Webapp hardware bridge

im attempting to get a .jar file from a git repository to be able to run it under macOS using JRE. The author left a wiki where there are the instructions to build from source. I tried to follow the steps described but i had a few issues: Using…
gabreturns
  • 11
  • 4
0
votes
1 answer

No main manifest attribute in jar

I've successfully completed project and now create i need to create a jar file to submit it. I used Eclipse and MYSQL In my src directory, I already created a folder META-MF with a MANIFEST.MF file that contains Manifest-Version: 1.0 Main-Class:…
xxx
  • 35
  • 5
0
votes
1 answer

Unable to write to Manifest file in maven build

I am trying to get info recorded to the manifest-file, but I dont get anything except below in my manifest file after the build Manifest-Version: 3 Specification-Title: 3 This is my build task in pom, where i tried giving manifest entries true, but…
0
votes
1 answer

Microprofile misses manifest.mf

I created an example microprofile app. And the readme says i can start it with java -jar myjar.jar But when I try it i get an error that no manifest.mf exists. I really don't have one in my example generated project. But when I extract the jar,…
Arquillian
  • 125
  • 2
  • 16
0
votes
0 answers

Intellij MANIFEST.MF Not able to resolve Main-Class attribute

I am creating an executable jar file for my project and created the MANIFEST.mf file. I have changed the location of manifest file to src/main/resources Although the manifest.mf file is auto generated by intellij, it is still showing me error with…
0
votes
1 answer

eclipse can't find main method when I make a jar

so I have the code made package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.stage.Stage; public class main extends Application{ …
0
votes
1 answer

Eclipse Dependencies in MANIFEST.MF

I'm new to this group. Thanks for any help. I'm using Eclipse and subversion (svn) in the work environment. I imported project A from the svn and renamed it to project B using Refactor. I also updated the .project file. Then I clicked MANIFEST.MF…
TennFest
  • 1
  • 1
0
votes
2 answers

IllegalAccessError when adding Rampart to the POM's dependencies

We tried adding Rampart to our module's POM file and after doing so our ear can no longer start with the following exception: java.lang.IllegalAccessError: tried to access method org.apache.log4j.Logger.(Ljava/lang/String;)V from class…
RonK
  • 9,472
  • 8
  • 51
  • 87
0
votes
1 answer

Antenna WtkPackage produces duplicate MANIFEST.MF files

Got a strange problem with Antenna - I've recently switched over to a new laptop, and now when I copied my build setup across to it it started exhibiting strange behaviour. When I call wtkpackage (in a way that worked perfectly fine on the old…
Adrian
  • 1,652
  • 2
  • 22
  • 32