Saving classes in a JAR file  Installing compressed JARs

Chapter 2: Preparing for and Maintaining Java in the Database

Installing uncompressed JARs

To install Java classes in a database, save the classes or packages in a JAR file, in uncompressed form. To create an uncompressed JAR file that contains Java classes, use the Java jar cf0 (“zero”) command.

In this UNIX example, the jar command creates an uncompressed JAR file that contains all .class files in the jcsPackage directory:

jar cf0 jcsPackage.jar jcsPackage/*.class




Copyright © 2005. Sybase Inc. All rights reserved. Installing compressed JARs

View this book as PDF