Updated java version

Still have to implement the password request, and do the file
opening/printing.