use java to dev opc program