please refer to Running Pure Java� Applications as NT Services http://www.kcmultimedia.com/javaserv/