From IBM Developerworks - 5 things you didn't know about ... JARs
1. JARs are executable: Manifest file can be modified to specify which class to launch when executing JAR. User then just have to execute JAR, at command line or simply by double clicking it.
2. JARs can include dependency information: Manifest allows declaration of JAR dependencies using "Class-path" attribute. This implicitly creates the CLASSPATH without having to declare it.
3. JARs can be implicitly referenced: Use "extension directory", the lib/ext directory, underneath JRE location.
4. Java 6 allows classpath wildcards
5. JARs hold more than code: For example, configuration files like Hibernate mappings.
1. JARs are executable: Manifest file can be modified to specify which class to launch when executing JAR. User then just have to execute JAR, at command line or simply by double clicking it.
2. JARs can include dependency information: Manifest allows declaration of JAR dependencies using "Class-path" attribute. This implicitly creates the CLASSPATH without having to declare it.
3. JARs can be implicitly referenced: Use "extension directory", the lib/ext directory, underneath JRE location.
4. Java 6 allows classpath wildcards
5. JARs hold more than code: For example, configuration files like Hibernate mappings.
Powered by ScribeFire.
0 comments:
Post a Comment