title: NoSuchPortException using RXTX Java library on Windows?
body: <p>I have followed the instructions to setup rxtx on windows from <a href="http://www.jcontrol.org/download/readme_rxtx_en.html" rel="nofollow noreferrer">http://www.jcontrol.org/download/readme_rxtx_en.html</a>.</p>
  
  <p>What I did exactly was copy rxtxSerial.dll to "C:\Program Files\Java\jdk1.6.0_07\jre\bin"
  and copied RXTXcomm.jar to "C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext"
  (my JAVA_HOME variable is set to C:\Program Files\Java\jdk1.6.0_07\jre)</p>
  
  <p>I also added RXTXcomm.jar to my eclipse project.</p>
  
  <p>But when I run it, it still says "NoSuchPortException"</p>
  
  <pre>
  Devel Library
  =========================================
  Native lib Version = RXTX-2.0-7pre1
  Java lib Version   = RXTX-2.0-7pre1
  java.lang.ClassCastException: gnu.io.RXTXCommDriver cannot be cast to gnu.io.CommDriver thrown while loading gnu.io.RXTXCommDriver
  gnu.io.NoSuchPortException
      at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218)
      at TwoWaySerialComm.connect(TwoWaySerialComm.java:20)
      at TwoWaySerialComm.main(TwoWaySerialComm.java:107)
  </pre>
  
  <p>In my java file, I tell it:</p>
  
  <pre>
          try
          {
              (new TwoWaySerialComm()).connect("COM4");
          }
  </pre>
  
  <p>and I've also tried the Java Comm API.  Both cannot recognize my serial port but I am sure I followed the instruction correctly.  There files are there.</p>
  
  <p>Does anybody have any idea what it could be?</p>