<p>Looking for a way to read the unique ID / serial# of a USB thumb drive;
please note that<br>
- I am looking for the value of the manufacturer, not the one Windows allocates for it.<br>
- I need to support multiple OS (Windows, Unix, Mac), thus needs to be a Java solution</p>

<p>The idea is to be able to distinguish between different USB thumb drives.</p>

[{'answer_id': 73548, 'author': 'tim_yates', 'author_id': 6509, 'author_profile': 'https://Stackoverflow.com/users/6509', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve never tried using it (it\'s been on my todo list for a good few months now), but there is the "marge" project on java.net:</p>\n\n<p><a href="http://marge.java.net/" rel="nofollow noreferrer">http://marge.java.net/</a></p>\n\n<p>This should let you connect to bluetooth devices (although I don\'t think it is 100% feature complete, there is demo code on there), and then the ClientDevice class has a "getBluetoothAddress" method which I <em>believe</em> should be unique to that device</p>\n\n<p><a href="http://marge.java.net/javadoc/v06/marge-core/net/java/dev/marge/entity/ClientDevice.html" rel="nofollow noreferrer">http://marge.java.net/javadoc/v06/marge-core/net/java/dev/marge/entity/ClientDevice.html</a></p>\n\n<p>As I say though, I\'ve never tried it...</p>\n'}, {'answer_id': 73888, 'author': 'Aidos', 'author_id': 12040, 'author_profile': 'https://Stackoverflow.com/users/12040', 'pm_score': 1, 'selected': False, 'text': '<p>I have never investigated this thoroughly, but from memory the <a href="http://users.frii.com/jarvi/rxtx/" rel="nofollow noreferrer">RXTX</a> library implementation of the javax.comm packages are supposedly very good and now have USB support.</p>\n'}, {'answer_id': 74045, 'author': 'Rangachari Anand', 'author_id': 7222, 'author_profile': 'https://Stackoverflow.com/users/7222', 'pm_score': 2, 'selected': False, 'text': '<p>RXTX is the way to go. In the world of model trains, JMRI (Java Model Railroad Interface) has become very popular. JMRI runs on all platforms (Windows, Linux and Mac) and communicates with a variety of USB based devices (command stations). RXTX is in fact used by JMRI.</p>\n'}, {'answer_id': 166282, 'author': 'jassuncao', 'author_id': 1009, 'author_profile': 'https://Stackoverflow.com/users/1009', 'pm_score': 2, 'selected': False, 'text': '<p>You might give a look at the following projects:\n<a href="http://javax-usb.org/" rel="nofollow noreferrer">javax-usb</a> and <a href="http://jusb.sourceforge.net/" rel="nofollow noreferrer">jusb</a>. They seem to support Linux and Windows. </p>\n\n<p>Anyway, since USB access in Java requires the use of native libraries, you might not achieve the required portability.</p>\n'}]
['https://Stackoverflow.com/questions/73288', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']