use java server mode