Advanced programming / Executing Java code with GMA |
A GMA app can execute custom Java code.
In order to execute Java user code on the mobile device, the compiled Java classes need to be available to the Genero runtime system. They can then be imported with the IMPORT JAVA classname instruction.
When executing the Genero program on a computer in development mode, define the CLASSPATH to your .jar files. This allows the JVM loaded by the Genero runtime system find the appropriate Java classes.
When executing the Genero program on a mobile device, the compiled user Java classes must be included in the mobile app Androidâ„¢ package (.apk), which is created in the Genero Studio deployment procedure.