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 this:
Manifest-Version: 1.0
Class-Path: ./bin/
Main-Class: simul.Simulador
But with no success.
The jar file structure should be something like this; the root of the package structure for the class files must be at the top level in the jar.
Your manifest should look like this:
The Class-Path attribute should only be used to refer to other JARs (or exploded class directories) external to the current jar file. It’s not a path inside the jar.