Java Reference
In-Depth Information
After you run the jar command, you should see a new file named
movie_bean.jar in the current working directory. This JAR file is now ready for
use by a JavaBean builder tool, so the next step is to download Sun's Bean
Builder tool and install it on your PC.
Step 4: Download the Bean Builder
Sun provides a JavaBean builder tool called the Bean Builder for working with
and hooking together JavaBeans. The Bean Builder is free to download and
use, so let's do that now. Open your Web browser and go to the following URL:
http://java.sun.com/products/javabeans/beanbuilder/index.html.
Toward the bottom of this Web page is a button to click to download the lat-
est version of the Bean Builder. Click this button and follow the directions to
download the installation file.
You do not need to download the Bean Builder. Instead, you can start the
program using Java Web Start, a program that allows applications to be
loaded and executed over the Internet. You can do this if you like, and you
may already have Java Web Start installed in your PC. However, if you do
not have a continuous connection to the Internet, you will probably be
better off downloading the Bean Builder application and installing it on
your local hard drive.
You don't really install the Bean Builder; you just unzip the file that you
downloaded. I suggest unzipping to your root directory, such as c:\, because
all necessary subdirectories already exist in the compressed file. Unzip the
file you downloaded now, and you should see a new directory named c:\
beanbuilder-1_0 or something similar.
Figure 19.4 shows the contents of this directory. The run.bat executable is
used for running the Bean Builder on Windows, and the run.sh executable is
used for running the Bean Builder on Unix platforms. Before running the Bean
Builder, you need to define the JAVA_HOME environment variable, which we
will now do.
Step 5: Run the Bean Builder
To run the Bean Builder, you must first set the JAVA_HOME environment vari-
able. Setting environment variables is done differently, depending on your
version of Windows. If you have Windows 95/98/ME, you define the
JAVA_HOME environment variable in the autoexec.bat file. Add the following
line to your autoexec.bat file:
set JAVA_HOME=c:\j2sdk1.4.1_01
Search WWH ::




Custom Search