Need help to find the VID/PID of the usb drive connected to the system through java code

后端 未结 2 375
执笔经年
执笔经年 2020-12-11 03:09

I need to find the vendor Id, Product Id of the usb drive connected to the system, through java code. Any suggestions...

2条回答
  •  一整个雨季
    2020-12-11 03:12

    I have never interfaced with USB in Java before, but have a look at JSR-80 (javax.usb) API. IBM DeveloperWorks have a tutorial (which can be useful).

提交回复
热议问题