Java software requirements for FGL

In order to use the Java Interface in your application programs, you need the Java software installed and properly configured.

  • Install a Java Development Kit (JDK) on development sites (if you need to compile your own Java classes)
  • Install a Java Runtime Environment (JRE) on production sites (on the server where your programs are running)

The Java classes defined by Genero (com.fourjs.fgl.lang.*) are compiled with javac compatibility options -source and -target for 1.6, 1.7 or 1.8, depending on the Java version available on the port platform.

As a general rule, always install the current Long-Term-Support (LTS) Java version available on your platform, with JNI support.

For a detailed list of supported JVMs, refer to the Supported platforms and databases document, available on the Products download page of the Four Js Web site.

The version of the installed Java software can be shown with the command:
java --version

In order to execute Java byte code, the Genero runtime system uses the JNI interface. The JVM is loaded as a shared library and its binary format must match the binary format of the Genero runtime system. For example, a 64-bit Genero package requires a 64-bit JVM.

When implementing Java classes for Genero Mobile for Androidâ„¢ (GMA), check the JDK version required by the Android SDK. For more information, see the Android Studio web site.