日期:2014-05-20  浏览次数:20654 次

comm能否用在weblogic下
CommPortIdentifier   portId;
                Enumeration             portList;
                        portList   =   CommPortIdentifier.getPortIdentifiers();
                        while   (portList.hasMoreElements())   {
            portId   =   (CommPortIdentifier)   portList.nextElement();
            System.out.println( "=================== "+portId.getName());
简单测试了一下
如果我自己写了个main函数,编译后用java   执行后是可以打出端口名的
但是如果我挂在weblogic下,用浏览器访问就不能显示,为什么呢?
我现在的weblogic是运行在我本机的

------解决方案--------------------
什么错误呀?comm用在weblogic下是没有问题的,问题是这个library有没有在程序运行的CLASSPATH里面。
------解决方案--------------------
程序运行也每异常?如果正常执行的话,至少=================== 应该打印出来