WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

 
 
Themen-Optionen Ansicht
Alt 17.10.2003, 10:01   #4
entropy
Jr. Member
 
Registriert seit: 11.01.2003
Beiträge: 23


entropy eine Nachricht über ICQ schicken
Standard

win32comm.dll im 'bin' Verzeichnis der JRE?

Wenn ja, probier mal folgendes Programm aus:
Code:
import javax.comm.*;
import java.util.Enumeration;
public class VerifyCommBuild {

public static void main(String args[]){
Enumeration ports;
System.out.println("Verifying Comm Build Environment");
try {
 ports = CommPortIdentifier.getPortIdentifiers();
 if (ports == null){
  System.out.println("No comm ports found!");
  return;
 }
 System.out.println("Some ports appear to have been found, let's try  
 to enumerate them.");
 while (ports.hasMoreElements()) {
  System.out.println("Here is a port [" + 
  ((CommPortIdentifier)ports.nextElement()).getName() + "]");
 }
} catch (Exception e) {
 System.out.println("Failed to enumerate ports [" + e.getMessage() 
 + "]");
 e.printStackTrace();
}
System.out.println("Complete.");
}
}
und schreib das Ergebnis hierher.

mfg
entropy
entropy ist offline   Mit Zitat antworten
 


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 17:02 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag