import rtx.RTXSvrApi;//导入RTXAPI类。 public class RTXMSGDemo{ public static void main(String[] args) { String receiver = "";//接收者RTX账号 String title = "";//消息标题 String msgType = "";//消息类型,0|1,紧急或者一般 String smInfo = "";//消息内容 RTXSvrApi RtxsvrapiObj = new RTXSvrApi();//加载RTX.dll,需要将RTXSDK相关文件放入Path。SDKAPIJava.dll,SKDAPI.dll,SDKAPIC.lib,SDKAPIC.dll,SDKAPIC.h,RTXParser.dll,Crypt.dll,RtxServerApi.ini if (RtxsvrapiObj.Init()) { RtxsvrapiObj.Notify(receiver, smInfo, msgType,title);//发送消息提醒 RtxsvrapiObj.UnInit(); } } }