1、首先需要注册AOI控件ALDMICtrl.ocx(可以问厂家索要),如何注册直接百度就行了
2、首先通过jacob连接控件
ActiveXComponent aldmi= new ActiveXComponent("ALDMICtrl.ALDMI");
3、启动服务
//得到服务"是否已经运行"参数的值
boolean active = aldmi.invoke("Active").getBoolean();
if(active) {
txtinfo.append("服务已启动\r\n");
}else {
//启动服务