首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

comm能否用在weblogic下,该如何处理

2012-01-06 
comm能否用在weblogic下CommPortIdentifierportIdEnumerationportListportListCommPortIdentifier.getP

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里面。
[解决办法]
程序运行也每异常?如果正常执行的话,至少=================== 应该打印出来

热点排行