There are few documents about the Amazon EMR Java API usage, in case you are finding codes configuring and starting EMR job using Java, here are the codes I use:
(a brief official sample can be found here, the file contains the following code is Here)