BeanBuilder Example


In this example I will create a simple calculator with Demeter/Java, my BeanBuilder, and Suns BDK. This examples assumes you are using a UNIX system. The calculator accepts simple expressions and supports only addition and multiplication. It is implemented is the following Demeter/Java files: In addition a beanspec file is created that instructs the BeanBuilder on how to package the bean. That file is Calc.beanspec .

Building the JavaBean


To build the calculator bean perform the following steps:

Creating an Application with Suns BeanBox