java: Class name parsing from classfile

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