那个例子不运行呀。好像是端口号不对,而且win32com.dll和javax.comm.propertis属性文件在WIN2000上,应放在哪个地方呀。 错误: wrong javax.comm.NoSuchPortException Exception occurred in main() of javax.swing.JFrame java.lang.NullPointerException at com.jmart.InventoryController.<init>(InventoryController.java:37) at com.jmart.InventoryView.initialize(InventoryView.java:497) at com.jmart.InventoryView.<init>(InventoryView.java:32) at com.jmart.InventoryView.main(InventoryView.java:507)
错误:
wrong javax.comm.NoSuchPortException
Exception occurred in main() of javax.swing.JFrame
java.lang.NullPointerException
at com.jmart.InventoryController.<init>(InventoryController.java:37)
at com.jmart.InventoryView.initialize(InventoryView.java:497)
at com.jmart.InventoryView.<init>(InventoryView.java:32)
at com.jmart.InventoryView.main(InventoryView.java:507)