Java runtime environment for FGL

Software requirements when using the Java Interface

Important: This topic is about JDK requirements for the FGL runtime system, to compile and execute server applications. To build GMA mobile applications, a different Java version may be required by Androidâ„¢ tools. For more details, see Install Genero Mobile for Android.

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.