java: Class initialization

Initialize class by invoking the "<clinit>" class method. Fixes #26.

Signed-off-by: Pekka Enberg <penberg@iki.fi>