I am running windows XP. Trying to get control of my Parallel ports using JAVA.
But when I run the following code segment nothing shows up! I checked my device manager I have COM1 and LPT1 port in the list
Please help.. I need to control a stepper motor using the parallel port
import java.io.*;
import java.util.*;
import javax.comm.*;
public class SimpleWrite {
public static void main(String[] args) {
Enumeration e = CommPortIdentifier.getPortIdentifiers();
while (e.hasMoreElements()) {
System.out.println("HI"+(CommPortIdentifier) e.nextElement());
}
}
}