The Java interface

The Java™ interface allows you to import Java classes and instantiate Java objects in your programs.

The Java interface gives access to the huge standard Java libraries, as well as commercial libraries for specific purposes.

The methods of Java objects can be called with other Java objects referenced in program, as well as with native language data types such as INTEGER, DECIMAL, CHAR.

The Java interface of Genero has the following limitations:
  1. It is not possible to use Java generic types such as java.util.Vector<E>, with a type parameter (for ex: Vector<MyClass> v = new Vector<MyClass>() ). However, it is possible to instanciate these classes without a type parameter (for ex: Vector v = new Vector() ).
  2. Database connections cannot be shared between Java and Genero programs.
  3. Java graphical objects cannot be used in Genero forms.
Note: On Android™ mobile devices, some system functions can only be accessed in the context of a JVM. Use the Java interface with the com.fourjs.gma.vm.FglRun class to access such system specifics.