문제

I'm building a cross-platform Java program, and I need it to be able to recognize when a USB device is connected or disconnected. I don't need to do anything with the device, I just need to know if/when it happens. I've looked at jUSB, but that's Windows-only and unnecessarily big. Is there any simple way to do this?

도움이 되었습니까?

해결책

To the best of my knowledge information and belief, the answer is that there is no simple way to do that. Fundamentally, the Java Virtual Machine (JVM) is an abstraction from your real hardware (not to mention that Java predates USB).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top