Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂJavaÈçºÎÁ¬SAP

±¾Îĵµ²âÊÔ»·¾³£º
1£©Linux²Ù×÷ϵͳ°æ±¾£º
       Red Hat Enterprise Linux Server release 5
       2.6.18-8.el5
2£©jdk°æ±¾
       1.5.0_16
 
LinuxÏÂÁ¬JavaÁ¬sap²½Öè
1£©ÏÂÔØsapjco.jar
       Çëµ½service.sap.com/connectors£¬ÏÂÔØsapjco.jar£¬±¾°¸ÏÂÔصÄÊÇsapjco-linuxintel-2.1.8.zip
2£©½âѹzipÎļþ£¬½«ÆäÖÐlibrfccm.so¡¢libsapjcorfc.soÁ½¸öÎļþ£¬¿½±´¸´ÖƵ½$JAVA_HOME/jre/lib/i386/server£¬²¢½«sapjco.jar¸´ÖƵ½Ìض¨Ä¿Â¼Ï£¬È»ºóÉèÖÃCLASSPATH±äÁ¿¼´¿É£¬±¾°¸export CLASSPATH=.:/usr/java/jdk1.5.0_16/lib:/usr/java/jdk1.5.0_16/jre/lib:/usr/wuxq/sapjco.jar
3£©ÔÚ½øÐÐsap rfcÁ¬½ÓµÄʱºò£¬ÐèÒªlibstdc++-libc6.2-2.so.3¿âÎļþ£¬¿É´ÓcsdnÉÏÏÂÔØ£¬http://download.csdn.net/source/648150£¬½«libstdc++-libc6.2-2.so.3¿âÎļþ¸´ÖƵ½librfccm.so¡¢libsapjcorfc.soÎļþËùÔÚµÄĿ¼¼´¿É£»
4£©ÖÁ´Ë£¬ÒѾ­Íê³ÉjcoÔÚlinuxϵݲװ£¬ÏÂÒ»²½¹¤×÷¾ÍÊÇдһ¸ö²âÊÔÓÃÀý£¬±¾°¸µ÷ÓÃÁËÒ»¸ösapµÄRFCº¯Êý£¬¸Ãº¯Êý´«ÈçÒ»¸ö×Ö·û´®²ÎÊý£¬·µ»ØÒ»¸öÕûÐÎÖµ£»
    ·´´½¨JCO.Client£¬²¢Á¬½Ó
    public boolean connect(){
       boolean rtn = false;
       try{
           client = JCO.createClient(sid, username,
password,language,host,ϵͳ±àºÅ);
            //sid-¼¯Íźţ»language-ZH,ENµÈ£»ÏµÍ³±àºÅ-00µÈ
           client.connect();
             rtn = true;
       }catch(Exception e){
           e.printStackTrace();
       }
       return rtn;
    }
·´´½¨RFCº¯Êý
    public JCO.Function createFunction(String name) throws Exception {
&n


Ïà¹ØÎĵµ£º

java µ÷ÓÃÃüÁî ±¸·ÝmysqlÊý¾Ý¿â

 ´úÂëÈçÏ£º
  1  String command  =   " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
  2      try    {
  3     Process process& ......

java µ÷ÓÃmysql¿Í»§¶Ëµ¼È룬µ¼³öÊý¾Ý

 ×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë 
/**  
 * µ¼ÈëÊý¾Ý  
  * @param  ½Å±¾µÄµØÖ·ºÍÃû³Æ  
 * @return ÊÇ·ñ³ ......

javaÉè¼Æģʽ

1¡¢FACTORY£¨¹¤³§Ä£Ê½£©
2¡¢BUILDER£¨½¨Ôìģʽ£©
3¡¢FACTORY METHOD£¨¹¤³§·½·¨Ä£Ê½£©
4¡¢PROTOTYPE£¨Ô­Ê¼Ä£ÐÍģʽ£©
5¡¢SINGLETON£¨µ¥Àýģʽ£©
6¡¢ADAPTER£¨ÊÊÅäÆ÷ģʽ£©
7¡¢BRIDGE£¨ÇÅÁºÄ£Ê½£©
8¡¢COMPOSITE£¨ºÏ³Éģʽ£©
9¡¢DECORATOR£¨×°ÊÎģʽ£©
10¡¢FACADE£¨ÃÅÃæģʽ£©
11¡¢FLYWEIGHT£¨ÏíԪģʽ£© ......

JavaÐéÄâ»ú¼¸¸öÃüÁîÐвÎÊý˵Ã÷

Ò»¡¢ÔËÐÐclassÎļþ
Ö´Ðдømain·½·¨µÄclassÎļþ£¬ÃüÁîÐÐΪ£º
java <CLASSÎļþÃû>
×¢Ò⣺CLASSÎļþÃû²»Òª´øÎļþºó׺.class
ÀýÈ磺
java Test
Èç¹ûÖ´ÐеÄclassÎļþÊÇ´ø°üµÄ£¬¼´ÔÚÀàÎļþÖÐʹÓÃÁË£º
package <°üÃû>
ÄÇÓ¦¸ÃÔÚ°üµÄ»ù·¾¶ÏÂÖ´ÐУ¬ÃüÁîÐÐΪ£º
java <°üÃû>.CLASSÎļþ ......

Javaģʽ֮µ¥Àýģʽ

¼òµ¥µÄ˵µ¥Àý¾ÍÊÇ Ö»ÄÜÓÐÒ»¸öʵÀý£¬ËùÒԵط½Óõ½µÄʵÀý¶¼ÊÇͬһ¸ö¡£
¾ÍºÃÏñ¼ÒÈ˳Է¹£¬×À×ÓÊǵ¥ÀýµÄ£¬´ó¼ÒÓõÄÊÇͬһ¸ö¡£¶øÍëÊǶàÀýµÄ£¬Ã¿È˶¼ÓÐ×Ô¼¸µÄ¡£ ÏÂÃæÊǾßÌåµÄÀý×Ó£º
Javaģʽ֮µ¥Àýģʽ£º
          µ¥Àýģʽȷ±£Ò»¸öÀàÖ»ÓÐÒ»¸öʵÀý£¬×ÔÐÐÌṩÕâ¸öʵÀý²¢ÏòÕû¸öÏµÍ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ