Add Java command line version