Add main java class.