m + fix java-c-jni implementation

Signed-off-by: Mattias Andrée <maandree@operamail.com>