title: RXTX Arduino USB with Windows
body: <p>I have to connect the Arduino board I got with Java and get data from it. The board itself is working correctly (tested on another computer with a Oython script).</p>
  
  <p>My problem now is to actually use the USB port. I correctly installed the RXTX library, and it does list the available port, but only COM ports and not USB ones.</p>
  
  <pre><code>while (enumComm.hasMoreElements()) {
      CommPortIdentifier currPortId = (CommPortIdentifier) enumComm.nextElement();
      System.out.println(currPortId.getName());
  }
  </code></pre>
  
  <p>This is the code I'm using to iterate though the available ports. The output looks like:</p>
  
  <pre><code>WARNING:  RXTX Version mismatch
      Jar version = RXTX-2.2pre1
      native lib Version = RXTX-2.2pre2
  COM3
  COM4
  </code></pre>
  
  <p>I'm using Windows. For Linux there are lots of posts, and it seems to be so much easier there as they simple appear in the list without any additional help/changed code.</p>