Build a Java class from Java code