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

Package.getImplementationVersion method for junit

Is it possible to get Package.getImplementationVersion() method available for junits? I am using maven and eclipse. I tried to execute mvn war:manifest to create the manifest file, so I could verify that the Implementation Version is not…
Steve
  • 1,145
  • 1
  • 11
  • 25
1
vote
2 answers

Appending attributes to manifest.mf of a JAR

My application needs me to add some atributes to manifest.mf of different jars without changing the previous version of manifest.mf. In short i want to append some attributes to manifest.mf of JAR. I am using ANT to build my application. In JAVA i…
gusainhimanshu
  • 157
  • 1
  • 11
1
vote
2 answers

NoClassDefFoundError when compiling a HelloWorld programming to a jar

Here's what I've got. I've got my 'MyJava' folder which everything is contained in. MyJava/src/a/HelloWorld.java MyJava/src/b/Inner.java MyJava/bin/ MyJava/manifest.txt HelloWorld.java: public class HelloWorld { public static void…
dwjohnston
  • 11,163
  • 32
  • 99
  • 194
1
vote
1 answer

ClassNotFoundException problems with manifest in created JAR

I'm trying to create a JAR file from my sources, but when I run it I get class not found exception - it can't find the main class, even though I defined it in the MANIFEST.MF file. Can you spot any errors please? My JAR…
Dropout
  • 13,653
  • 10
  • 56
  • 109
1
vote
2 answers

JAVA: Unable to run a jar file

I'm new to JAVA and trying unable to figure out what's wrong with the project I created. I created a JAVA project in eclipse and exported a jar (not runnable jar). I unchecked .project and .classpath file options while exporting. Now I'm trying to…
Mayank
  • 5,454
  • 9
  • 37
  • 60
1
vote
1 answer

MANIFEST.MF issue with jhall.jar

i have created a jar-file (DicoDB.jar) with Eclipse in the folder called 'program-jar'. Inside a subdirectory 'javahelp' are the following jar-files: jhall.jar, hsviewer.jar, jh.jar and dicoDBHelp.jar (this is my jar-file which contents my…
TobiasH
  • 83
  • 1
  • 8
1
vote
1 answer

Manifest.mf remains empty when trying to write via maven build process

I am trying to write some extra data to my manifest.mf via the pom.xml but for some reason it is remaining blank.... I am a complete newbie at java so am going to write all my steps down here .. no matter how stupid this makes me look as i have no…
AttikAttak
  • 797
  • 4
  • 12
  • 20
1
vote
1 answer

Specify encoding in manifest file

I created a jar using the Export functionality in Eclipse and when I try to execute it in the following way it fails java -jar Code.jar However it works correctly for java -Dfile.encoding=UTF-8 -jar Code.jar Current manifest…
Abi
  • 1,335
  • 2
  • 15
  • 28
1
vote
0 answers

Xbootclasspath/p equivalent for JAR Manifest.MF?

I currently run my JAR (which overrides default JRE classes) using command-line parameters like java -Xbootclasspath/p:lib/1.jar;lib/2.jar -jar myJAR.jar I would like to put those overrides into the JAR Manifest.MF like Boot-Class-Path: lib/1.jar…
Brian Johnson
  • 1,629
  • 5
  • 21
  • 26
1
vote
2 answers

Unwrapping a java manifest file fin bash

In Java, META-INF/MANIFEST.MF files have a maximum line length. Beyond that, an automatic line break is inserted, signaled by a space at the beginning of the next line, like so: Manifest-Version: 1.0 Export-Package:…
Miquel
  • 15,405
  • 8
  • 54
  • 87
1
vote
1 answer

Does the manifest.mf file show the version of the jar?

Intro I have created a script that loops trough all installed applications on our application server, for each application finding the WEB-INF/lib-folder. Then, for all third party jar-files in the lib-folder I extract the manifest-file to find the…
rhellem
  • 769
  • 1
  • 11
  • 26
1
vote
1 answer

Java - getManifest() issue: Not first entry

I want to generate programtically a jar file in java. This works well when the input jar file has NOT been obfuscated. When I use an obfuscator on it, the first entry is no longer the manifest, so I can't generate a new file... Here is my…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
0
votes
1 answer

MANIFEST.MF in RAD not listing all dependencies

In my RAD, when I open up the MANIFEST.MF file for an ejb project, because I need to add dependencies, in the UI, I see (under dependencies): Select other JARs or modules contained by the EAR that are required by this JAR or module. Only valid or…
Victor
  • 16,609
  • 71
  • 229
  • 409
0
votes
1 answer

Executing jar file with jars in folders

I am inside a E:/foo/bar folder inside windows environment. I have a jar file as E:/foo/bar/a.jar. Also inside foo/bar there are lot of jar files. Also under the foo/bar there is another directory called ext. It also includes lot of jar files. I…
Dilshan
  • 3,231
  • 4
  • 39
  • 50
0
votes
1 answer

Unification of .jar and .jad files in a J2ME application

currently, I am developing a J2ME application for mobiles using LWUIT library. The build result of my project includes a .jar file along with a .jad file. I wonder, is there any way to unify these to files into a single .jar file? Why some…
TonySalimi
  • 8,257
  • 4
  • 33
  • 62