August 2001
Intermediate to advanced
480 pages
9h 14m
English
Programming tutorials have traditionally begun with a “Hello, world” example since 1978. We are writing code for residential gateways, so home is the world for us. In this section we develop a bundle that simply displays “Home, sweet home” when it is activated, and “I'll be back” when it is deactivated.
A bundle is packaged as a Java archive (or JAR) file. A JAR file is essentially a ZIP file with a manifest, and it can be created, updated, and examined with the jar tool. More information can be found online (http://java.sun.com/j2se/1.3/docs/guide/jar/index.html).
The steps to develop the example bundle are
1. |
Create the directory structure for the bundle.
|
2. | Declare the necessary headers in a manifest stub. ... |
Read now
Unlock full access