浠ヤ笅鏄湰浜哄湪浣跨敤MyEclipse宸ュ叿鐨勪竴浜涘績寰楋紝甯屾湜瀵瑰ぇ瀹舵湁鐢紒
1. 淇敼MyEclipse寮鍚〉闈㈠浘鏍?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> a銆侀鍏堟壘鍒拌繖涓浘鐗?
鎴戠殑鐩綍鏄?D:\Program Files\MyEclipse 6.5\myeclipse\eclipse\splash.bmp
娉ㄦ剰6.0浠ュ墠鐗堟湰鏂囦歡鍚嶄篃鎵涓嶅悓錛屽叾瀹炲彧瑕侀殢渚挎壘涓涓猙mp鐨勬枃浠訛紝涔熷彲浠ワ紝
鐢ㄧ敾鍥炬墦寮錛岀劧鍚庡啓涓婅嚜宸辯殑澶у悕.....
b銆佹壘鍒癳clipse鐩綍鐨別clipse.ini
鏈鍚庨潰鍔犱竴鍙?-Dosgi.splashLocation=鍥劇墖璺緞錛屽嵆鍙?/p>
2銆佷慨鏀筂yEclipse涓殑蹇嵎閿細
Window---->Preferences---->鎼滅儲[key]鎵懼埌keys欏甸潰---->鍋氱浉搴斾慨鏀?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> content Assist ---- Alt+/
3.璁㎝yEclipse椋炶搗鏉ワ細
a銆乄indow---->Preferences---->鎼滅儲[mav]鎵懼埌Maven欏甸潰----->灝嗚欏甸潰鐨勫嬀鍏ㄥ幓鎺?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> b銆?..鎼滅儲[star]鎵懼埌Startup and Shutdown欏甸潰---->鍙幓鎺?0%鐨勯夐」
4銆佷慨鏀筳sp欏甸潰榛樿緙栫爜鏍煎紡錛?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Window---->Preferences---->鎼滅儲[jsp]鎵懼埌JSP欏甸潰---->Encoding:閫夋嫨UTF-8
5銆佷慨鏀筂yEclipse鐨勯粯璁ょ鍙o細
a銆乄indow---->Preferences---->鎼滅儲[tom]--->MyEclipse Tomcat--->8088[鑷甫tomcat]
濡傛灉鏄疶omcat 6.0鎴栧叾瀹冪増鏈殑瑕佹壘鍒癟omcat鐨勫畨瑁呮枃浠禼onf涓殑server.xml鏂囦歡淇敼
鍏朵腑鐨勭鍙e彿
b銆佹壘鍒癕yEclipse欏甸潰宸ュ叿鏍忕殑銆愮數鑴戝浘鏍囥戠偣鍑誨鍏惰繘琛岀浉搴旂殑淇敼錛孫K鎼炲畾....
鍏徃鏈榪戠殑涓涓」鐩湁榪欐牱涓涓渶姹傦細灝辨槸閫氳繃java浠g爜璋冪敤RTX鎻愪緵鐨凙PI鍚慠TX鍙戦佹秷鎭紝杈懼埌涓縐嶅強鏃舵彁閱掔殑鏁堟灉銆?/p>
銆銆璁╂垜瀵筊TX鏈変簡涓瀹氱殑浜嗚В鍜岃璇嗭細
銆銆铏界劧RTX鎻愪緵鐨凙PI榪樻瘮杈冧赴瀵岋紝浣嗘搷浣滅殑榪囩▼涓繕鏄細紕板埌涓浜涘ぇ澶у皬灝忕殑闂銆?/p>
鎴戞墍紕板埌鐨勭涓涓棶棰樺氨鏄暟瀛楄處鍙鋒棤娉曞彂閫佹秷鎭殑闂錛?/p>
銆銆 public int sendNotice(RtxSendNoticeBean rtxb) {
銆銆銆銆int iRet= -1;
銆銆銆銆RTXSvrApi RtxsvrapiObj = new RTXSvrApi(); //RTX鎻愪緵鐨凙PI
銆銆銆銆if( RtxsvrapiObj.Init()){
銆銆銆銆銆銆RtxsvrapiObj.setServerIP(rtxb.getServerip()); //璁劇疆RTX鏈嶅姟鍣↖P鍦板潃
銆銆銆銆銆銆RtxsvrapiObj.setServerPort(rtxb.getServerprot()); //璁劇疆RTX鏈嶅姟鍣ㄧ鍙?/span>
銆銆銆銆銆銆String szKey = RtxsvrapiObj.getSessionKey(rtxb.getRecivers());
銆銆銆銆銆銆System.out.println("SessionKey:" + szKey);
銆銆銆銆銆銆//API涓殑娑堟伅鍙戦?鍔熻兘 0:鎿嶄綔鎴愬姛 闈?:鎿嶄綔涓嶆垚鍔?
銆銆銆銆銆銆iRet = RtxsvrapiObj.sendNotify(rtxb.getRecivers(),rtxb.getTitle(),rtxb.getContent(), rtxb.getType(),rtxb.getDelarytime());
銆銆銆銆}
銆銆銆銆if (iRet == 0){
銆銆銆銆銆銆System.out.println("鍙戦佹垚鍔?);
銆銆銆銆}else{
銆銆銆銆銆銆System.out.println("鍙戦佸け璐?);
銆銆銆銆}
銆銆銆銆RtxsvrapiObj.UnInit();
銆銆銆銆return iRet;
銆銆 }
銆銆浣跨敤浠ヤ笂浠g爜錛岃嫢RTX鏄潪綰暟瀛楄處鍙峰氨娌¢棶棰橈紝鍙互鍙戦併備絾濡傛灉鏄函鏁板瓧璐﹀彿灝辨病鍙嶅簲錛岀粡澶氬鏌ユ壘璧勬枡寰楀緇撴灉錛岃繖鏄疪TX2011涔嬪墠鐗堟湰鐨刡ug銆傝鎯沖悓鏃舵搷浣滄暟瀛楄處鍙峰彲浠ョ敤浠ヤ笅涓ょ鏂瑰紡瑙e喅錛?/p>
銆銆1銆佺洿鎺ュ畨瑁?span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: 'Times New Roman'; ">RTX2011鐗?/span>SDK(鑻ユ鏂規鍙灝變笉鐢ㄥ啀鍋氫笉絎簩姝ユ搷浣?/span>)銆?/span>
銆銆銆銆涓嬭澆鏂囦歡錛?span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: 'Times New Roman'; ">RTXS2011SDK(8.0.786.202).exe
銆銆2銆佸鏋滃凡瀹夎2010鐗?/span>SDK錛屽張涓嶆兂浣跨敤RTX2011鐗圫DK錛屽氨闇瑕佸仛宸蹭笅淇敼:
銆銆銆銆a. 鎶?span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: 'Times New Roman'; ">RTXSSDK2010瀹夎鐩綍涓嬬殑SDKAPIC.dll銆?/span>SDKAPI.dll銆?/span>SDKAPIJava.dll鐢?span data-mce-="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">RTX2011SDK涓殑榪涜瑕嗙洊銆?/span>
銆銆銆銆b. 鍐嶆妸SDKAPIC.dll銆?/span>SDKAPI.dll銆?/span>SDKAPIJava.dll鎷瘋礉鍘昏鐩?/windows/system32
銆銆銆銆c. 鐢?span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: 'Times New Roman'; ">regsvr32 鍛戒護娉ㄥ唽涓涓?/span>SDKAPI.dll鏂囦歡銆?/span>
鏈鍚庨渶瑕佸湪RTX鎻愪緵鐨凙PI涓坊鍔犱竴琛屼唬鐮侊細
銆銆/**
銆銆* 鍙戦佹秷鎭彁閱?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />銆銆* @param receivers String 鎺ユ敹浜?澶氫釜鎺ユ敹浜轟互閫楀彿鍒嗛殧)
銆銆* @param title String 娑堟伅鏍囬
銆銆* @param msg String 娑堟伅鍐呭
銆銆* @param type String 0:鏅氭秷鎭?1:绱фユ秷鎭?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />銆銆* @param delayTime String 鏄劇ず鍋滅暀鏃墮棿(姣) 0:涓烘案涔呭仠鐣?鐢ㄦ埛鍏抽棴鏃舵墠鍏抽棴)
銆銆* @return int 0:鎿嶄綔鎴愬姛 闈?:鎿嶄綔涓嶆垚鍔?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />銆銆*/
銆銆public int sendNotify(String receivers,String title,String msg, String type,String delayTime) {
銆銆銆銆svrInit(OBJNAME_RTXEXT);
銆銆銆銆AddProperty(iProp, KEY_USERNAME, receivers);
銆銆銆銆AddProperty(iProp, KEY_TITLE, title);
銆銆銆銆AddProperty(iProp, KEY_MSGINFO, msg);
銆銆銆銆AddProperty(iProp, KEY_TYPE, type);
銆銆銆銆AddProperty(iProp, KEY_MSGID, "0");
銆銆銆銆AddProperty(iProp, KEY_ASSISTANTTYPE, "0");
銆銆銆銆AddProperty(iProp,KEY_UINTYPE,"Account"); // 濡傛灉璁劇疆KEY_UINTYPE 涓篈ccount錛屾棤璁轟紶榪涘幓鏄函鏁板瓧榪樻槸瀛楃涓詫紝閮借涓烘槸甯愬彿銆?/span>
銆銆銆銆if(!"0".equals(delayTime))
銆銆銆銆銆銆AddProperty(iProp, KEY_DELAYTIME, delayTime);
銆銆銆銆iResult = Call(iObj, iProp, PRO_EXT_NOTIFY);
銆銆銆銆innerCode = GetResultInnerCode(iResult);
銆銆銆銆release();
銆銆銆銆return innerCode;
銆銆}
榪欐牱鏀瑰ソ榪欏悗錛屽ぇ鍔熷憡鎴愶紒