I have the following program to read and list the serial port,
I am using RXTX library for it.
I have compiled and run the
java program as follows:
C:\SMS\work>javac Connectnow.java
C:\SMS\work>java Connectnow
portList=gnu.io.CommPortEnumerator@5e481248
false
I am getting the value of portList.hasMoreElements() as false. What to do? I have set all the things in the RXTX library correctly. I am using Windows 8.1 64bit system. Please help me. Why it is coming as false?