Thema: jar erstellen
Einzelnen Beitrag anzeigen
Alt 17.10.2003, 09: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