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
2
votes
5 answers

How to Create a runnable jar that uses external jar files in dynamic locations

I've programmed an application that take about 300 kilobytes. The jar files that it uses (library) take about 10 megz. These library jar files are used in other applications I wrote and so I would like to have them located in an external central…
Ben
  • 10,020
  • 21
  • 94
  • 157
2
votes
0 answers

with tomcat manager, how to take application version from manifest.mf instead of war filename

In Tomcat manager v7, the only way i found to show version of app deployed, is to add version tag to war filename with "appname##versiontag.war" synthax. I need to upload a generic file wihtout version, but i need anyway to have version in manager…
2
votes
0 answers

In manifest.mf Trusted-Library: true giving me mixed code prompts

My system contains four jars. One jar contains Mixedcode(applet called from javascript). The jar containing the mixed code accesses other jars also. I added the attribute Trusted-Library : true and Permissions: all-permissions in manifest.mf(I'm…
gusainhimanshu
  • 157
  • 1
  • 11
2
votes
3 answers

Manifest attribute for java jar

With all the help from you i was able to finish my first project in java. Now i want to create a jar and run the application (Java project - it is a plain console application which is having another project(console application) as a dependence) from…
tom
  • 5,114
  • 6
  • 24
  • 36
2
votes
4 answers

How to include the lib folder in the manifest classpath in Netbeans

A library that my java application uses needs looks for a file (log4j.xml) in the class path. I use netbeans to manage my project, but I can't find a way to include the lib/ folder. Netbeans automatically creates a MANIFEST.MF file inside the…
FabienB
  • 1,104
  • 2
  • 11
  • 22
2
votes
2 answers

How to make a runnable jar of my maven project?

I want to make a jar file of my project but it shows error when I try to make jar. Till now, I build a jar that is executed by using a command , java -cp
. I have done this by adding plugin in the POM,
devsda
  • 4,112
  • 9
  • 50
  • 87
2
votes
2 answers

no default META-INF folder in Netbeans project -- where to add files to?

How do I get Netbeans to add javamail.providers into the META-INF folder (which I manually added) without getting into the weeds in the ant build file? It's kinda odd, because manifest.mf ends up in the META-INF folder in the resulting jar…
Thufir
  • 8,216
  • 28
  • 125
  • 273
2
votes
5 answers

I cannot access the correct MANIFEST.MF file in my java code

I have tried numerous ways to access the manifest from the correct jar in a unit test. The issue I have is it seems to be reading the first jar file it comes to and not the one for my class. This is my latest attempt InputStream is =…
AttikAttak
  • 797
  • 4
  • 12
  • 20
2
votes
2 answers

Manifest classpath is not working

I have created one manifest.jar which contains the jars that needs to be added in classpath for some other Jar. I tried using relative classpath as well in my manifest.mf but still these jars are not getting added in classpath or that jar which…
jsc_1999841
  • 51
  • 1
  • 4
2
votes
2 answers

Specifying JVM heap sizes in JAR

I'm trying to write a game engine, but it needs more memory than the default settings. I know that if you double-click a jar, the default settings are used. So is there anyway I can specify that the JAR requires custom heap sizes in it's manifest…
DaedalusUsedPerl
  • 772
  • 5
  • 9
  • 25
2
votes
1 answer

Does URLClassLoader.addURL(URL) honor the META-INF/MANIFEST.MF

If I have a jar that includes a Class-Path entry in the MANIFEST.MF. If I add the jar to a URLClassLoader, are the jars in the Class-Path entry also added to the classloader? Do I need to introspect the jars that I want to add to the classloader to…
vkraemer
  • 9,864
  • 2
  • 30
  • 44
1
vote
3 answers

Creating a workable jar

Ok, this is round two of my problem. I have created a simple program in notepad and saved it as a (Blocktestgui.java)java file. I compile with the command javac Blocktestgui.java and get (Blocktestgui.class) I created a text manifest file (see…
Izodness
  • 11
  • 2
  • 5
1
vote
1 answer

how to read manifest.mf in an j2me application

I'm developing a j2me application using Netbeans IDE and LWUIT library. I need to read some attributes of MANIFEST.MF that are included in jar file. What all I found in net, either have conflict with j2me or are not working with Netbeans. How to…
aida
  • 153
  • 1
  • 9
1
vote
2 answers

How to set default username for MANIFEST.MF for my computer?

I'm looking for a way to set the "built by" entry in my MANIFEST.MF to something different from my user name. I can do it at build time with -Duser.name= but I'd like to have it default to something besides my system user name. I do not…
ohshazbot
  • 894
  • 3
  • 8
  • 16
1
vote
3 answers

jar -uf is deleting the file inside the jar

I am using jar -uf to update my MANIFEST.MF file like this: a. jar xf jarfile.jar META-INF\MANIFEST.MF b. edit the file c. jar uf jarfile.jar META-INF\MANIFEST.MF But the 'uf' command is removing MANIFEST.MF from within my jar. What is the right way…
jacob
  • 1,397
  • 1
  • 26
  • 53