Packaging contracts in JARs
In order to distribute contracts, you can place them into a JAR file. This is a very simple job that can be accomplished in just three steps, which are as follows:
Consider an empty JAR file.
Create, in JAR, a folder named
META-INF
.Copy the
contracts
folder from your application intoMETA-INF
.
For example, a JAR file that contains the default
, tableGreen
, and tableBlue
contract folders has the structure shown in the following screenshot:
A complete example that uses this JAR file is named ch11_9
.