ÓÃRMIʵÏÖÒ»¸ö¼òµ¥µÄʵʱÁÄÌìϵͳ(javaÓïÑÔ)
ʵÏÖÒ»¸öRMIÓ¦ÓóÌÐò£¨ÊµÑ鱨¸æ£©
¢åʵÑéÄÚÈÝ
ʵÏÖÒ»¸ö¼òµ¥µÄʵʱÁÄÌìϵͳ¡£
¢æ´¦ÀíÁ÷³Ì
1¡¢ÏµÍ³Éè¼Æ
¢Ù ´´½¨»Øµ÷½Ó¿Ú
¶¨ÒåÒ»¸ö»Øµ÷½Ó¿Ú£¬·þÎñÆ÷¶Ë¿ÉÒԻص÷´Ë½Ó¿ÚÖÐÉùÃ÷µÄ·½·¨¡£¸Ã½Ó¿Ú±ØÐë¼Ì³ÐÔ¶³Ì½Ó¿Ú¼´Remote¡£
¢Ú ´´½¨Ò»¸ö±¾µØ½Ó¿Ú
ÔڸýӿÚÖÐÌí¼Ó±¾½Ó¿ÚµÄʵÏÖÀàÖеÄÆäËûÀàµÄʵÀýÏëÒªµ÷Óõı¾ÀàµÄ·½·¨¡£ÕâÀïµÄÆäËûÀàµÄʵÀýÖ÷ÒªÖ¸µÄÊdzÌÐòÖеÄFrameÀàµÄʵÀý£¬¼´¿Í»§¶Ë´°¿Ú¡£
¢Û ´´½¨Ò»¸ö¿Í»§¶Ë´°¿ÚÀà
¸ÃÀà¼Ì³ÐFrameÀ࣬ʵÏÖÁËActionListener½Ó¿Ú£¬ÓÃÓÚչʾһ¸ö½ÏΪºÃÓõĽçÃ棬»ñÈ¡Óû§Ãû¡¢ÏûÏ¢ºÍÏÔʾÆäËü¿Í»§·¢¹ýÀ´µÄÏûÏ¢¡£
¢Ü ´´½¨Ò»¸ö¿Í»§¶ËÀà
¸ÃÀàʵÏÖÁËÇ°ÃæµÚ1¡¢2²½Öд´½¨µÄ»Øµ÷½Ó¿ÚºÍ±¾µØ½Ó¿Ú£¬²¢¼Ì³ÐÁËUnicastRemoteObjectÀ࣬¼Ì³ÐÕâ¸öÀàºÜ¹Ø¼ü£¬Unicast¼´µ¥²¥, ¼ÆËã»úÍøÂçÓÃ, ÊÇÔÚÒ»¸öµ¥¸öµÄ·¢ËÍÕߺÍÒ»¸ö½ÓÊÜÕßÖ®¼äͨ¹ýÍøÂç½øÐеÄͨÐÅ¡£¿ªÊ¼ÒÔΪ¿Í»§¶Ë²»Óü̳ÐÕâ¸öÀ࣬½á¹ûʧ°ÜÁ˺ܶà´Î£¬×îºó·¢ÏÖҪʵÏֻص÷£¬¿Í»§¶Ë±ØÐë¼Ì³Ð¸ÃÀà¡£¿Í»§¶ËÀàÖÐн¨Ò»¸ö¿Í»§¶Ë´°¿ÚÀàµÄʵÀý£¬ÈçµÚ3²½ÖÐËùÊö£¬Õâ¸öʵÀý¿ÉÒÔµ÷Óÿͻ§¶ËÀàÖеı¾µØ·½·¨¡£
¢Ý ´´½¨Ò»¸ö·þÎñÆ÷¶Ë½Ó¿Ú
¸Ã½Ó¿ÚÒ²±ØÐë¼Ì³ÐÔ¶³Ì½Ó¿Ú¼´Remote¡£¿Í»§¶Ë¿ÉÒÔÔ¶³Ìµ÷ÓôËÀàÖÐÉùÃ÷µÄ·½·¨£¬¾ÍÏñ±¾µØµ÷ÓÃÒ»Ñù¡£
¢Þ ´´½¨Ò»¸ö·þÎñÆ÷¶ËÀà
¸ÃÀàʵÏÖµÚ5²½Öд´½¨µÄ½Ó¿ÚÀಢʵÏÖUnicastRemoteObjectÀà¡£
2¡¢Éè¼ÆÖеÄÌصã¼ò½é
¿Í»§·¢Ë͵ÄÏûÏ¢£¬ÏÈ·¢Ë͸ø·þÎñÆ÷£¬ÔÙÓÉ·þÎñÆ÷¹ã²¥¸øËùÓпͻ§£¬Õâ¸ö¹ý³ÌÊÇͨ¹ý¿Í»§¶ËÔ¶³Ìµ÷Ó÷þÎñÆ÷¶ËµÃ¹ã²¥ÏûÏ¢·½·¨ÊµÏֵġ£ÔÚ·þÎñÆ÷¹ã²¥ÏûÏ¢Õâ¸ö·½·¨ÖУ¬Êµ¼ÊÊǵ÷Óÿͻ§¶ËµÄÏÔʾÏûÏ¢µÄ·½·¨¡£Òò´Ë£¬ÎªÁËʵÏֹ㲥£¬Ò²¼´ÎªÁËÄÜÈ÷þÎñÆ÷Ô¶³Ìµ÷Óÿͻ§µÄ·½·¨£¬¾Í±ØÐëʵÏÖ·þÎñÆ÷¶Ë¶Ô¿Í»§¶ËµÄ»Øµ÷£¬ËùÒԻص÷ÊÇÉè¼ÆÖеÄÒ»¸öÌص㡣ΪÁËʵÏÖ¿Í»§¶Ë¶Ô·þÎñÆ÷¶ËµÄÔ¶³Ìµ÷Ó㬷þÎñÆ÷¶Ë±ØÐëʵÏÖUnicastRemoteObjectÀࡣΪÁËʵÏÖ·þÎñÆ÷¶Ë¶Ô¿Í»§¶ËµÄ»Øµ÷£¬ÎÒÃǵĿͻ§¶ËÒ²±ØÐë¼Ì³ÐUnicastRemoteObjectÀà¡£×ʼÔÚÊÔÑé»Øµ÷µÄʱºò£¬ÓÉÓÚûÓм̳ÐÕâ¸öÀ࣬½á¹ûʧ°Ü¡£ºóÀ´Ã÷°×ÁË£¬»Øµ÷Ò²ÊÇÒ»ÖÖÔ¶³Ìµ÷Óã¬Ö»ÒªÊÇÔ¶³Ìµ÷Ó㬾ͱØÐëʵÏÖÕâ¸öÀà¡£
ΪÁËʵÏÖ¿Í»§¶ËÓÐÒ»¸ö¿ÉÒÔÏÔʾµÄÖ±¹ÛµÄ´°¿Ú£¬ÔÚÉè¼ÆÉÏÒ²ÊÇʵÑéÁ˺ܶà´Î¡£Ò»¿ªÊ¼Ö±½Ó¶¨ÒåÒ»¸ö¼¯³É´°¿ÚÀàµÄ¿Í»§¶ËÀ࣬²¢ÇÒÈÃÕâ¸öÀàʵÏÖ¿Í»§¶Ë»Øµ÷½Ó¿Ú£¬µ«ÊÇÕâÑù×ö£¬¾Í²»ÄÜÈÿͻ§¶ËÀà¼Ì³ÐUnicastRemoteObjectÀàÁË£¬ÒòΪjavaÊDz
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
package com.dongyang;
/*
* ¶Áxlsдxml
*/
import java.io.FileOutputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.XMLOutputter;
imp ......
Ç°Á½ÌìѧµÄÊÇjavaµÄ»ù´¡ÒÔ¼°ÔõôÅäÖÃJDK
public class Information{
public static void main(String args[]){
System.out.println("ÐÕÃû£º"+"asf");
System.out.println("ÐÔ±ð£º"+"m");
&n ......
Java¹æÔòÒýÇ湤×÷ÔÀí¼°ÆäÓ¦ÓÃ
¡¡¡¡Õª Òª Java¹æÔòÒýÇæÊÇÒ»ÖÖǶÈëÔÚJava³ÌÐòÖеÄ×é¼þ£¬ËüµÄÈÎÎñÊǰѵ±Ç°Ìá½»¸øÒýÇæµÄJavaÊý¾Ý¶ÔÏóÓë¼ÓÔØÔÚÒýÇæÖеÄÒµÎñ¹æÔò½øÐвâÊԺͱȶԣ¬¼¤»îÄÇЩ·ûºÏµ±Ç°Êý¾Ý״̬ϵÄÒµÎñ¹æÔò£¬¸ù¾ÝÒµÎñ¹æÔòÖÐÉùÃ÷µÄÖ´ÐÐÂß¼£¬´¥·¢Ó¦ÓóÌÐòÖжÔÓ¦µÄ²Ù×÷¡£
¡¡¡¡ÒýÑÔ
¡¡¡¡Ä¿Ç°£¬JavaÉçÇøÍƶ¯²¢·¢Õ¹Á ......
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ¸ö½×¶ÎÐèÒªÄã¿ìËÙµÄÕÆÎÕJava»ù´¡Óï·¨ºÍ»ù±¾Ó÷¨£¬×ÚÖ¼¾ÍÊÇ“àñàðÍÌÔæ²»ÇóÉõ½â”£¬ÏȶÔJavaÊìϤÆðÀ´ÔÙ˵¡£Óú̵ܶÄʱ¼ä¿ìËÙ¹ýÒ»±éJavaÓï·¨£¬Á¬ã´ø²Â¶àдд´úÂ룬Ҫ“ÖªÆäÈ»”¡£
1¡¢¡¶Java±à³Ì˼Ïë¡·
Ô ......