update cmake use java stuff