[Generator] make key class and main java file.