Sealing Packages within a JAR File
Sealing Packages within a JAR File Packages within JAR files can be optionally sealed, which means that all classes defined in that package must be archived in the same JAR file. You might want to seal a package, for example, to ensure version consistency among the classes in your software. You seal a package in […]
Understanding the Default Manifest
Understanding the Default Manifest When you create a JAR file, it automatically receives a default manifest file. There can be only one manifest file in an archive, and it always has the pathname META-INF/MANIFEST.MF When you create a JAR file, the default manifest file simply contains the following: Manifest-Version: 1.0Created-By: 1.6.0 (Sun Microsystems Inc.) These […]
Signing and Verifying JAR Files
Signing and Verifying JAR Files You can optionally sign a JAR file with your electronic “signature.” Users who verify your signature can grant your JAR-bundled software security privileges that it wouldn’t ordinarily have. Conversely, you can verify the signatures of signed JAR files that you want to use. This lesson shows you how to use […]
Verifying Signed JAR Files
Verifying Signed JAR Files Typically, verification of signed JAR files will be the responsibility of your JavaTM Runtime Environment. Your browser will verify signed applets that it downloads. Signed applications invoked with the -jar option of the interpreter will be verified by the runtime environment. However, you can verify signed JAR files yourself by using […]
Signing JAR Files
Signing JAR Files You use the JAR Signing and Verification Tool to sign JAR files. You invoke the JAR Signing and Verification Tool by using the jarsigner command, so we’ll refer to it as “Jarsigner” for short. To sign a JAR file, you must first have a private key. Private keys and their associated public-key […]
Understanding Signing and Verification
Understanding Signing and Verification The JavaTM platform enables you to digitally sign JAR files. You digitally sign a file for the same reason you might sign a paper document with pen and ink — to let readers know that you wrote the document, or at least that the document has your approval. When you sign […]
Setting Package Version Information
Setting Package Version Information You may need to include package version information in a JAR file’s manifest. You provide this information with the following headers in the manifest: 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 […]
Distributing your Application as an executable JAR file
Distributing your Application as an executable JAR file A JAR (Java ARchive) is a way of packaging together all of the resources associated with a program (class files, images, sounds, etc.). Putting your program in a JAR allows it to be distributed as a single executable file, saving space and simplifying the download process. The […]
yWorks Ant Explorer Eclipse Plugin
Eclipse Integration Downloads yWorks Ant Explorer is available as a plugin for the popular Java IDE Eclipse. It supports both the visualization and execution of Ant build scripts. Installation You can install the plugin by using Eclipse’s integrated Update Manager, which is available via the menu items “Help” – “Software Updates” – “Find and Install.” […]
Generating Code Automatically Using Custom code Template In Eclipse
One of the good features of Eclipse is its auto fill property. This can be further enhanced using its code template feature. Creation of code templates is necessary to improve development productivity. Templates add consistency and uniformity to your code. Eclipse has so many ready-to-use templates. And you can create your own code templates according […]