Define an object reference variable

Before creating a Java object in your program, you must declare a program variable to reference the object. The type of the variable must be the name of the Java class, and can be fully qualified if needed:
IMPORT JAVA java.util.regex.Pattern
MAIN
  DEFINE p1 Pattern
  DEFINE p2 java.util.regex.Pattern
END MAIN

The variables declared with a class are only the handles to reference an object (meaning the object is not yet created).