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

bundled executable jar file - couldnot find main class

I am trying to execute a jar file StartupUtil.jar but it's giving an error of Couldnot find and load main class. I looked at other similar question and tried but couldnot figure out what is wrong. My structure for created StartupUtil.jar is…
anon
  • 367
  • 1
  • 4
  • 18
0
votes
1 answer

Manifest.MF vs libraries.xml vs deployment.xml

So I am having issues deploying code to my local websphere server (imagine the dred I have for installing it to my test server). I get a java.lang.ClassNotFoundException when I attempt to run the application. So after googling around it seems…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
0
votes
1 answer

Modify Manifest.mf classpath using Ant

I need help to modify the classpath in my JAR manifest.mf file. Here's my scenario: I am trying to make Netbeans build multiple JAR files for this project. I managed to create an Ant target that build the various JAR files. I used ant-contrib's for…
phrfpeixoto
  • 191
  • 1
  • 2
  • 11
0
votes
1 answer

Eclipse PDE: Cannot use slf4j.simple plugins from current target platform as plugin dependency (purple icon)

Summary of Problem: I cannot use all of the plugins from a p2 Software Site ( = Updatesite ) as dependencies. They are listed in the target platform with a purple icon and they do not appear in the plug-in selection list when trying to add as…
0
votes
2 answers

Java Application loading external jar

I am about to program a java application that is able to load extended functionality from an external directory that contains extension .jar files. I tried to specify that external directory within the MANIFEST.MF file's Class-Path property but…
Simon
  • 17
  • 5
0
votes
1 answer

Java - edit manifest.mf to have .class and .java files in a JAR

I would like to have .class and .java files in a JAR. Thus, I have "bin" and "src" pastes in that JAR. How should I edit the MANIFEST.MF? JAR | -- bin -- .class files | -- src -- .java files | -- META-INF -- MANIFEST.FM Im doing…
rasgo
  • 1,381
  • 4
  • 15
  • 28
0
votes
1 answer

Self written eclipse plugin works for Luna, but not for Juno

I developed an plugin in Eclipse Standard/SDK Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800 and it works fine. I could install it via my feature project to this eclipse version (Luna). But now I try to install the same plugin…
Lord_Fry
  • 83
  • 1
  • 5
0
votes
0 answers

Maven - build a manifest.mf with customized Class-Path

I am using Maven to build an EAR project with 20+ artifacts and ~30 3rd party artifacts. The EAR structure looks like this EAR +-project-artifact-1 +-project-artifact-2 ... +-project-artifact-n +-lib/ | +-3rd-party-lib-1 | +-3rd-party-lib-2 | ... |…
Cryn
  • 1,005
  • 1
  • 9
  • 13
0
votes
1 answer

Class-Path in manifest gets disordered

I am creating a jar file with multiple jars referred in Class-Path manifest.mf. After the jar is created I could see the Class-Path entry values are jumbled up. Please suggest how I can fix it? I entered like: lib\axis.jar lib\axis-ant.jar In the…
bhaumikananda
  • 41
  • 2
  • 2
  • 11
0
votes
1 answer

Update tycho pom & manifest and commit changes to SVN via Maven

I'm using a hudson server to create release builds. My goal is to set the new delevopment version to my snapshot, build the release artefact (RCP artifact build with tycho) and commit the new delevopment version to my svn repository. For this I've…
Mr.Mountain
  • 863
  • 8
  • 32
0
votes
1 answer

Maven jar with classpath in manifest

I am making an extra jar containing the project jar and all dependencies, as part of my maven build (with maven-assembly-plugin): In assembly XML file: false runtime
Dennis Thrysøe
  • 1,791
  • 4
  • 19
  • 31
0
votes
3 answers

Could not find or load main class- I cannot run my .jar file created from Ant

I have been struggling with this for two days now. I created a very simple HelloWorld class to test if I can get this working but I was not able to. I get Error- Could not find or load main class... It works from Eclipse or run task from the…
jaycee
  • 1
  • 1
  • 2
  • 9
0
votes
1 answer

Mule MANIFEST.MF

Is there any way to extract MANIFEST.MF in mule?? I would like to get version related information like, build version, timestamp, version etc. I'm creating API to get these build information. other than MANIFEST.MF, is there any other way to get…
Neel
  • 303
  • 1
  • 4
  • 15
0
votes
1 answer

java.lang.NoClassDefFoundError: org/ini4j/InvalidFileFormatException by gradle

When I want to run jar from my gradle project it shows: Exception in thread "main" java.lang.NoClassDefFoundError: org/ini4j/InvalidFileFormatException My build.gradle in short: apply plugin: 'java' apply plugin: 'pmd' apply plugin:…
Levvy
  • 1,100
  • 1
  • 10
  • 21
0
votes
1 answer

runtime classpath using manifest.mf classpath

i built an ear using ant and the its compiling fine. however when i deploy i get the noclassdeffound error in the weblogic server logs. so i added the libraries(jars) in server startup script i.e the server java classpath it works fine. Please help…
Amjad Syed
  • 185
  • 1
  • 1
  • 8