lib/java: separate core