9 Matching Annotations
- Jun 2023
-
app.peachjar.com app.peachjar.com
- Sep 2020
- Dec 2018
-
docs.oracle.com docs.oracle.com
-
I don't get why you should seal a package, a better use-case example should be added
-
-
docs.oracle.com docs.oracle.com
-
Headers in a manifest Header Definition Name The name of the specification. Specification-Title The title of the specification. Specification-Version The version of the specification. Specification-Vendor The vendor of the specification. Implementation-Title The title of the implementation. Implementation-Version The build number of the implementation. Implementation-Vendor The vendor of the implementation.
It would be nice to have a bit more background, why this stuff is called like this
-
-
docs.oracle.com docs.oracle.com
-
To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path.
So, other jars have to be extracted.
-
The Class-Path header points to classes or JAR files on the local network,
Wait, WHAT? on the local network??? Why would it look on the local network?
-
-
docs.oracle.com docs.oracle.com
-
To modify the manifest, you must first prepare a text file containing the information you wish to add to the manifest. You then use the Jar tool's m option to add the information in your file to the manifest.
You don't add a manifest, but you add a second file that contains additional fields
-
Warning: The text file from which you are creating the manifest must end with a new line or carriage return. The last line will not be parsed properly if it does not end with a new line or carriage return.
This is very stupid....
-
-
docs.oracle.com docs.oracle.com
-
As an example, suppose you wanted to put audio files and gif images used by the TicTacToe demo into a JAR file, and that you wanted all the files to be on the top level, with no directory hierarchy. You could accomplish that by issuing this command from the parent directory of the images and audio directories: jar cf ImageAudio.jar -C images . -C audio .
Don't preserve relative paths
-