trying to get interactive console through java