Java runtime environment

Software requirements when using the Java Interface

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

Note: The Java version number convention used in this section corresponds the the "Java developer version", not the "Java product version". For example, the Java developer version 1.6 corresponds to the JRE or JDK product version 6. For more details about Java version conventions, see Java SE 6, Platform Name and Version Numbers.

The Java classes defined by Genero (com.fourjs.fgl.lang.*) are compiled with javac -source 1.5 -target 1.5, to be Java 1.5+ compatible. Therefore the minimum theoretical Java version is 1.5. However, depending on the platform, the minimum required Java version may be Java 1.6 or 1.7 (latest updates).

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.