define java compire version
more typesafe