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
1 answer

My .jar file is not executable created from Netbeans, why?

Ok, so I am very new to Java. I find it really hard. I have an assignment from school that is almost finished, except one thing. Creating a runnable .jar file. I have googled myself crazy.. When I clean and build my project a jar file is created. It…
0
votes
1 answer

How to define an empty-value attribute in MANIFEST.MF?

I need to add an attribute to MANIFEST.MF with an empty value. This doesn't work: Foo-Attrib: java.util.jar.Manifest can't load such a file and throws an exception. What is a possible workaround?
yegor256
  • 102,010
  • 123
  • 446
  • 597
0
votes
0 answers

maven manifest.mf Class-Path with .m2 and local dependencies

I would like to build jar file in maven using maven dependencies and local dependencies. How can I change maven plugin to insert all jar-s to Class-Path that I put inside dependencies sections? ex.
fBruno
  • 1
  • 1
0
votes
1 answer

Generate MANIFEST.MF using Spring Boot and Gradle

I need to add the following headers to the MANIFEST.MF file using Gradle and Spring Boot: Name Specification-Title Specification-Version Specification-Vendor Is there a way to configure the Gradle build process to read these values from…
Fábio
  • 3,291
  • 5
  • 36
  • 49
0
votes
0 answers

Gradle 7.x fat executable jar displays Error: Could not find or load main class

I have spent 3 days trying to see why this error is produced when executing the jar. Finally, I opened the jar file and noticed that the META-INF folder contains the MANIFEST.MF file but also some folders and some other files too. If I delete all…
Ximo Dante
  • 67
  • 9
0
votes
0 answers

Is it possible to apply spacing on the sides of a button in an excel ribbon addin using manifest.xml

I am currently developing an excel addin using angularJS. I am working on the ribbon component on the manifest file but I cant seem to put a space in between the buttons so they look kind of cramped. Is it possible to put space above, below or at…
Jaja
  • 3
  • 1
0
votes
0 answers

no main manifest attribute, in jar while trying to create and run with console

I'm trying to create a jar file with console and run it on windows. Export.java public class Export { public static void main(String[] args) { System.out.println("Hello world :D"); } } then I created the class file…
Inod Umayanga
  • 114
  • 1
  • 7
0
votes
1 answer

Maven - from where is "Release-Name" field data retrieved while creating MANIFEST.MF

We are using Jenkins maven plugin for building and deploying war applications. In the jenkinsfile we have the command (I removed the list of profiles for the sake of simplicity): mvn release:clean release:prepare -P -U…
0
votes
1 answer

Java jar manifest file with unrecognized fields

I am working on migration my application to java9, I found that I can set Add-Opens in my manifest file to open some java internal packages for reflection usage. I am thinking fields like Add-Opens are only support after java9, so I wonder what will…
0
votes
2 answers

Could not find main method from given launch configuration

I've a simple Java project that works when I execute it at Eclipse environment. But when I try to export it to a Runnable Jar, I get the following error: JAR export finished with warnings. See details for additional information. Exported with…
Charles
  • 282
  • 1
  • 4
  • 18
0
votes
1 answer

Difference between Rsrc-Class-Path and Class-Path

can someone tell me please what are the difference between Rsrc-class-Path and Class-Path sections of a runnable-jar's mannifest file? Now I take them as granted as generated by Eclipse, but I'd like to understand how it works. What I think based on…
DDS
  • 2,340
  • 16
  • 34
0
votes
1 answer

Java Maven: instead of Implementation-Version program returns Java-Runtime Version

I've been working on this for a while and tried every possible solution on here, but nothing seems to works. Apparently, I couldn't find anyone having the same problem on here as well. Please help :) Every time I use…
0
votes
0 answers

"no main manifest attribute" when building .jar (Gradle)

I've been trying many different things throughout various posts, but none of the solutions have helped me. Creating an artifact through Build -> Build artifacts..., selecting directory for META-INF/MANIFEST.MF as main\resources and running a…
Captain Jacky
  • 888
  • 1
  • 12
  • 26
0
votes
2 answers

The MANIFEST.MF file won't load when I compiled it on my macbook

I created a simple test jar executable file, but when I tried to run it, it wouldn't work because it said that the Main-Class manifest attribute from jar.jar wouldn't load. The manifest file (which was called manifest.mf) I typed up looked like…
0
votes
0 answers

Why should I provide a library in two places when deploying an executable jar?

I have three java classes, a, b, and c in the current working folder. Class c needs a library(library.jar) in sub-folder called lib. So I have folder structure as follows… a.class b.class c.class lib/library.jar To create the MANIFEST.MF I create…
lazyone
  • 1
  • 3