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

(OSGi) How do i export a package for my bundle to import?

I am writing from scratch an OSGi bundle for Eclipse smarthome and need to export a certain package. This is needed because at the moment the karaf console is showing me this error: Unresolved requirement: Import-Package: com.pubnub.api In the…
0
votes
1 answer

No such file or directory for manifest file and no main manifest attribute when creating jar file

I'm trying to create a simple jar program name Example.java which displaying "Hello World" to the user and the code are as follow: public class Example{ public static void main(String[] args) { System.out.println("Hello World"); } } and I…
0
votes
1 answer

How to list dependencies with their relative path in class path of Manifest file of generated jar file using maven jar plugin?

I am working on java project with Maven and Maven-jar-plugin I have generated a classpath of dependencies for my jar file in MANIFEST.MF using maven jar plugin. here is my plugin usage:
0
votes
0 answers

Accessing Jar file of another application in Weblogic

I have two applications(say App1 & App2) deployed in Weblogic, and have a situation to access App1/.../abc.jar from App2/app2.war/xyz.jar Package Structure of App1 /a1/app1.ear/app1.war/WEB-INF/abc.jar Package Structure of…
Satheesh Cheveri
  • 3,621
  • 3
  • 27
  • 46
0
votes
0 answers

How to extract content present in Manifest file in java?

I want to read contents present inside manifest file in java. Is there any library to do so ? Manifest file content look like: Pay…
Rony Singh
  • 147
  • 1
  • 10
0
votes
2 answers

Class-Path ignored when running jar

My MANIFEST.MF in my application jar contains the following line: Class-Path: other.jar My directoy contains the followign files at the same level: - myApp.jar - other.jar I run my application using java -jar myApp.jar and get a…
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
0
votes
1 answer

Add MANIFEST.MF to docker image with fabric8 docker-maven-plugin

I've successfully created a docker image with fabric8 plugin, using a custom Dockerfile, for a Servlet WebApp. The image is based on tomcat, and so I need to put the app in tomcat/webapps To optimize the image I'm not inserting the war directly, but…
lelmarir
  • 593
  • 2
  • 7
  • 24
0
votes
1 answer

Problem setting class path without shortcut directory folder in java manifest

Earlier shortcut was allowed in a server so the code shown below worked fine for executing a jar file Manifest-Version: 1.0 Sealed: true Main-Class: org.test.MainClass Class-Path: /PROGRA~1/Testfolder/hibernate3.jar …
MR AND
  • 376
  • 7
  • 29
0
votes
1 answer

How to generate a JAR with Maven and 3rd party dependencies

I'm working on a Java project with maven and I'm trying to generate the jar file. I'm using mvn-jar-plugin and mvn-dependency-plugin to try to include all the required libraries. Here's my pom.xml:
novayhulk14
  • 113
  • 11
0
votes
1 answer

How to avoid applets "Do you want to run this application?" pop-up message

Recently we had to upgrade to Java JRE to 1.8.0_201 for an old web application using a single signed Applet. Since then, on starting the applet the "Do you want to run this application?" pop-up window is shown with the detailed information "This…
pcvnes
  • 927
  • 2
  • 15
  • 41
0
votes
1 answer

Getting malformed POM as I try to specify manifest in pom.xml

I am packaging my application as mvn package It creates a jar file by the name JasperCSVDataSource-1.0-SNAPSHOT.jar When I try to run the jar file as : java -jar JasperCSVDataSource-1.0-SNAPSHOT.jar I get an error saying no main manifest…
Amanda
  • 2,013
  • 3
  • 24
  • 57
0
votes
0 answers

How to determine if 2 .jar files are versions of "the same"?

At work I often receive Java webapp builds to deploy in production, which include all the dependencies in .jar files. Some times, the delivered builds include duplicate jars with different versions, e.g. log4j-1.2.3.jar and log4j-1.2.4.jar, which…
André Fernandes
  • 2,335
  • 3
  • 25
  • 33
0
votes
1 answer

Gradle pull dependencies from manifest of included jar

I have weblogic 10.3.6 installed on local. I usually add wlserver_10.3\server\lib\weblogic.jar in classpath of my eclipse project and it brings all other weblogic runtime jars to the classpath from MANIFEST.MF file of weblogic.jar. See image…
Rakesh Prajapati
  • 1,078
  • 8
  • 17
0
votes
1 answer

Create executable jar file in maven,missing main-class in manifest

This is my pom.xml how can i make a executable jar, i read in google that it needs to have main class in manifest.mf. I tried with addind plugin but nothing -
Liverpool
  • 265
  • 7
  • 21
0
votes
2 answers

How to include jars in manifest file automatically

I am working with not web based application which uses bunch of external jars, we are few developers on this project and constantly add, remove jars each time jar is being added or removed we manually update manifest.mf file. Is there any way to add…
yan
  • 149
  • 3
  • 11