ÔÚjava³ÌÐòÖÐ,ΪÁËʵÏÖͬ±¾µØϵͳµÄÓ²¼þ¶Ë¿Ú(RS-232±ê×¼´®¿Ú/IEEE1284±ê×¼²¢¿Ú)ͨѶ,Ä¿Ç°ÓÐÁ½¸ö·½·¨,µÚÒ»¸ö¾ÍÊÇÒÔǰ˵¹ýµÄ,ʹÓÃJNI¼¼Êõ×Ô¼ºÐ´Ò»¸öÓëjava³ÌÐòÏà¹ØµÄdll/soÎļþ,Õâ¸öÎļþ¿ÉÒÔÖ±½ÓºÍ±¾µØϵͳͨÐÅ,´Ó¶ø¹ÜÀí±¾µØ»úÆ÷µÄ¶Ë¿Ú,²»¹ýʹÓÃjava³ÌÐò¶À×ÔʵÏÖÒ»¸ö±È½ÏÍêÉƵĶ˿ڹÜÀí½â¾ö·½°¸¶Ô¸öÈ˶øÑÔÊÇÒ»¸ö»¨·Ñ¾Þ´óÇÒ²»Êµ¼ÊµÄÏë·¨.µÚ¶þ¸ö·½·¨¾ÍÊÇʹÓÃsun¹«Ë¾ÌṩµÄcomm°ü,ÕâÌ×APIÊÇÓÃÓÚ¿ª·¢Æ½Ì¨¶ÀÁ¢µÄͨѶӦÓóÌÐòµÄÀ©Õ¹API,µ«ÊÇÕâ¸ö°ü²¢Î´°üº¬ÔÚsunµÄj2se°üÖÐ,¶øÊÇÒÔ¶ÀÁ¢jar°üÐÎʽ·¢²¼ÔÚjava.sun.comÍøÕ¾ÉÏ,ÏÂÃæ½öÌÖÂÛʹÓÃcomm°ü¹ÜÀí±¾µØ»úÆ÷¶Ë¿ÚµÄ·½·¨.
comm°üÄ¿Ç°ÓÐÈýÖÖϵͳµÄ°æ±¾,·Ö±ðÊÊÓÃÓÚx86ºÍSparc½á¹¹ÏµÄSolarisϵͳ,ÒÔ¼°x86ϵÄLinuxϵͳ,x86ϵÄwindowsϵͳ,µ«ÊÇÔÚsunµÄÍøÕ¾ÉÏÃæ,½öÌṩÁËWindowsºÍSolarisƽ̨ϵÄÁ½¸ö°æ±¾,Èç¹ûÐèÒªlinuxϵÄcomm°ü,ÐèÒª´ÓµÚÈý·½ÍøÕ¾ÏÂÔØ,¾Ý˵Õâ¸öµØÖ·http://www.geeksville.com/~kevinh/linuxcomm.html¿ÉÒÔÏÂÔØ(µ«ÊÇÎÒ·ÑÁ˺ܳ¤Ê±¼ä²¢Ã»ÓдÓÕâÀïÏÂÔØÏÂÀ´,¶øÊÇ´ÓCSDNÏÂÔØÖÐÐÄÕÒµ½µÄ).
ÊÊÓÃÓÚ²»Í¬ÏµÍ³Æ½Ì¨ÏµÄcomm.jar°üº¬µÄ±¾µØ½Ó¿ÚÎļþÊDz»Ò»ÑùµÄ,windowsƽ̨µÄ°ü³ýAPIÍâÌṩµÄÎļþÊÇjavax.comm.properties,win32com.dllÁ½¸öÎļþ,linuxƽ̨µÄ°üÌṩµÄÊÇjavax.comm.properties,libLinuxSerialParallel.so,libLinuxSerialParallel_g.soÈý¸öÎļþ,ÆäÖÐjavax.comm.properties¼Ç¼ÁËcomm APIµÄÇý¶¯Ãû,winddowƽ̨µÄÊÇcom.sun.comm.Win32Driver,linuxƽ̨µÄÊÇcom.sun.comm.LinuxDriver,¶ødllºÍsoÎļþÔòÌṩÁ˱¾µØÇý¶¯½Ó¿Ú.
ÔËÐÐjava³ÌÐòÐèÒªJREÀ´ÔËÐÐ,ÔÚ°²×°Íêjdkºó»á³öÏÖÁ½Ì×jre,Ò»Ì×ÊǶÀÁ¢µÄÒ»Ì×°üº¬ÓÚjdkĿ¼ÄÚ,Õâ¸öҪŪÇå³þ,javax.comm.propertiesÎļþ±ØÐë·Åµ½ÔËÐе±Ç°java³ÌÐòµÄjreµÄlibĿ¼ÏÂ(Ò»°ã·ÅÔÚjavahome/jre/libϼ´¿É),¶øsoºÍdllÎļþËùÔÚµÄĿ¼ÐèÒª±»Ó³É䵽ϵͳµÄpathÖÐ,Ò»°ã×°Íêjdkºó,javahome»á±»×Ô¶¯Ó³É䵽ϵͳpathÖÐ,ËùÒÔ°Ñso»òdllÎļþ·Åµ½javahome/binĿ¼Ï¼´¿É,Èç¹ûso/dllÎļþµÄ·¾¶¸ã´í,»áÓÐÒì³£Å׳ö,ÈçÔÚwindowsϵĻ°´íÎóÐÅÏ¢ÈçÏÂ:
1 Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path.
ͬʱÕâ¸ö´íÎó»á¼Ì¶øÅ׳öjavax.comm.NoSuchP