The Java interface / Prerequisites and installation |
In order to use the Java Interface in your application programs, you need the Java software installed and properly configured.
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).
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.