🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1797

How to make the javax.comm work!

#1797
From: Scott Yaung
Date: Sat, 08 Sep 2001 10:42
24 lines
1486 bytes
My code is following like this.
Nothing printout, it seems that nothing in the list of
portidentifiers.
Can anyone help?

import javax.comm.*;
import java.util.*;

public class Comport{
  public Comport(){}
static{
  try{
  Enumeration enu=CommPortIdentifier.getPortIdentifiers();
  while(enu.hasMoreElements()){
    CommPortIdentifier cpid=(CommPortIdentifier)enu.nextElement();
    System.out.println(cpid.getName());
    }
  }catch(Exception e){e.printStackTrace();}
 }

  public void main(String args[]){
  Comport com=new Comport();
  }
 }
Technical Details
Message-ID: <3b99f67e$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,971e6062e64afa89,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-09-08 04:03:15 PST
From: "Scott Yaung" <gzscott@21cn.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: How to make the javax.comm work!
Date: Sat, 8 Sep 2001 18:42:30 +0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 61.140.191.46
Message-ID: <3b99f67e$1_2@dnews>
X-Trace: dnews 999945854 61.140.191.46 (8 Sep 2001 03:44:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnews