I'm afraid this might not strictly be a programming question, but more something I need cleared up to continue my programming.
I am simply trying to write a program to do serial communication, specifically using the javax.comm API and I have succeeded on Win7, but when I run any such program on my device, I get no output. The device is running Debian 6, and it has JDK1.8.0 installed.
In order to run my programs on Win7, I needed to get the API and place the three magic files comm.jar, win32comm.dll and javax.comm.properties in specific folders, but I don't know how to do this on my device.
Does anyone know if I can just put these three files in some arbitrary folders and reference them with a path environment variable?
The code I am trying to run is simply:
package test;
import java.util.Enumeration;
import javax.comm.*;
public class Test {
public static void main(String[] args) {
Enumeration e = CommPortIdentifier.getPortIdentifiers();
while (e.hasMoreElements()) {
CommPortIdentifier com = (CommPortIdentifier) e.nextElement();
System.out.println(com.getName());
}
}