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

META-INF/MANIFEST.MF file not found in unnamed.war

I am using Intellij idea and I want to deploy my project to the server. Before that I tried to create a .war file but when i create a war file, i am getting this error META-INF/MANIFEST.MF file not found in unnamed.war How can I solve this problem…
hsnclk
  • 77
  • 2
  • 12
1
vote
1 answer

Get the versions of jars,ears and wars and read them programatically in Weblogic server and Glassfish server

My customer wants to get the versions of all deployed modules(jars,war and ear) of web-logic server/glassfish server. The customer needs a UI, where they need to see the list of all jars along with the versions of it. They'll be using weblogic and…
1
vote
1 answer

Java WebStart - 3rd party jar - manifest

I'm trying to run a Java WebStart application using Netbeans IDE. I've signed the application using a valid Comodo certificate. When I run the jar, it brings up a popup with the jar & its certificate's details. However, it then shows another popup…
Ajit Singh
  • 115
  • 11
1
vote
4 answers

maven-jar-plugin does not generate MANIFEST

I cant generate MANIFEST file using maven... I try everything and I didnt find the solution. The jar file is generate correct, but manifest is missing. This is the part of my pom.xml:
joo
  • 11
  • 1
  • 2
1
vote
1 answer

What is the use of converting jars to bundles in WAB(OSGI)?

After exploring the OSGi framework, I had developed a sample web application.The Web Application Bundle(.war or .jar) is packaged inside an eba. The war file contains a bunch of embedded jar files in its WEB-INF/lib directory.These jars have been…
crackerplace
  • 5,305
  • 8
  • 34
  • 42
1
vote
0 answers

Convert modified manifest files back to JarEntry

At work we use a lot of third-party libraries that come already signed. Some of them are no longer maintained, but we still need to use them. Due to recent Java security update the manifest files in those jars need to be updated to include extra…
user283188
  • 287
  • 3
  • 11
  • 19
1
vote
0 answers

Java Manifest not working on Windows 8

I made an jar program "AbLauncher v0.1.0.jar" and It ran it successfully. but when I gave it to the Windows 8 user, he says that he got this error while running on cmd: Cannot Find or Load main class AbLauncher But, the main class specified by…
Abastro
  • 73
  • 1
  • 6
1
vote
1 answer

Execute .JAR by name without specifying 'java -jar' command options

Is it possible to execute a jar file by simply typing the jar name into the command line? Is there anything I can add to the manifest to achieve this? Ie. jarname.jar instead of java -jar jarname.jar
Jarrod Cabalzar
  • 408
  • 1
  • 5
  • 24
1
vote
1 answer

Missing Main-Class attibute in MANIFEST.MF in Maven generated jar file

I am currently experimenting with Maven in Eclipse (m2e-Plugin) and tried to build and run the Hello World example project. However, when launching the generated jar, nothing happens. I checked the MANIFEST.MF and noticed that the Main-Class…
user2035039
  • 961
  • 3
  • 16
  • 30
1
vote
2 answers

How to specify the jar file in manifest?

I have created a mail.jar file and mywar.war file. What I need to set into the manifest.mf use the mail.jar as a library?
user245398
  • 135
  • 1
  • 2
  • 12
1
vote
2 answers

Ant Jar task corrupts manifest encoding

Per Jar specification manifest encoding has to be UTF-8. In some scenario (eg merge), manifests produced by ant's jar task got corrupted and special chars would be double encoded. Original manifest (utf-8): ... Application-Name: spécial ... Final…
Cerber
  • 2,889
  • 4
  • 27
  • 43
1
vote
3 answers

How to add Splash Screen with NetBeans?

I wanted to add a simple .gif as Splash Screen to my application. I'm using NetBeans and I've seen there are lots of bugs when doing this with it. I've tried to add the line SplashScreen-Image: to the manifest.mf file and -splash: at the run…
Guille
  • 23
  • 1
  • 6
1
vote
0 answers

How do I inject properties into MANIFEST.MF with IntelliJ?

I want to add Weblogic-Application-Version to the MANIFEST.MF file of my EAR project. I am imagining IntelliJ can do this via setting some property on some dialog somewhere, or by running a post-build command (shell command I hope) so that I can use…
cmdematos
  • 883
  • 4
  • 12
  • 24
1
vote
1 answer

How to read a file in another jar file?

I am running a GUI application (A.jar). Then I add a plugin (B.jar) to this GUI(A.jar). Now I want to access the manifest.mf file in B.jar. I tried B.class.getResourceAsInputStream("/META-INF/MANIFEST.MF"). However, what I got is the manifest.mf in…
ajiu wu
  • 13
  • 3
1
vote
1 answer

eclipse cannot find main method from given launch configuration

I went to eclipse>export>java>runnable jar file I changed launch configuration to my project name; destination: desktop. I tried all three library handling options: extract required folders into generated JAR Package required libraries into…
Raymond Zheng
  • 119
  • 1
  • 10