To create an object from a class, you use the JClassFactory.NewInstance()
method. This method creates an Object instance and takes whatever
parameters your class constructor needs. Once the object is created,
you have access to all of its public instance methods and fields.
For example, you can use the following Visual Basic code extract
to create an instance of the java.lang.Integer string:
...
Dim oMyInteger as Object
set oMyInteger = oXJB.NewInstance(CLng(255))
Dim strMyInteger as String
strMyInteger = oMyInteger.toString