Reading/Writing to a Serial Port in RFT
I am attempting to access a serial port to read/write using RFT 7.0.1, but have been unable to do so. I am trying to use the commapi to accomplish this but I am not sure where to put all the files so that the compiler can see them. I am fairly new to RFT especially when it comes to adding new JAR files. If there is a better way to read/write to a serial (com) port please help. But this is what I have tried already and I cant get it to work.
I placed the "comm..jar" and "javax.comm.properties" at "C:\Program Files\IBM\SDP70\jdk\jre\lib".
I then placed "win32com.dll" at "C:\Program Files\IBM\SDP70\jdk\jre\bin".
I then went to "Project -->Properties-->Java Build Path-->Libraries
I then added an External JAR (comm.jar)
After doing this the "import javax.comm.*" shows up as being recognized in Eclipse, but when I compile and run the script I get the following error:
Script Playback Failure: Load script class failed [SimpleRead] [java.lang.ClassNotFoundException: SimpleRead]
If anyone has any ideas please help. Thanks in advance.