Java, Exceptions and EJB

Java objects and arrays can be created via javanew and used directly in JudoScript. Java classes can be obtained via javaclass operator; static members can be accessed and invoked. Calling Java methods is no different from calling a regular function or method, except in certain cases data type casting is needed to correctly invoke an overloaded method. Basic JDK and J2EE classes can be declared as constants with directives of !JavaBaseClass, !JavaGuiClass and !JavaEnterpriseClass. User classes can be declared with !JavaPackage<name> directive and the package collection is defined by !DefineJavaPackages. Exceptions thrown from Java code as well as from the engine itself can be handled. Sometimes new Java classes are intended for the JudoScript application but not anywhere else, Java class code can be embedded in the script, with a few loose restrictions. Java interfaces can be implemented in JudoScript as adapters.