Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Constructing Java Objects with Chili!Beans


The Chili!Beans control is used in scripts in the same way that Microsoft implements COM wrappers for Java objects with the Microsoft JVM.

An instance of any Java class located on the path in the local CLASSPATH environment variable can be constructed, any public methods of the resulting object can be called, and any of its public fields can be accessed.

There are several ways to create a Java object by using Chili!Beans, as discussed in this section. The recommended (and simplest) way is to use the NewJavaObject method (see Accessing a Java Class via Chili!Beans).

In this section:

Accessing a Java Class via Chili!Beans

Registering a Java Class as a COM Component on Linux and UNIX

Returning a Java Class from a Method Call or Field Access



ContentsPreviousNextIndex