issuing hard drive commands with java

后端 未结 4 1428
日久生厌
日久生厌 2021-01-24 12:27

Does anyone know of a way to issue commands to a hard drive within Java? Does Java even support this kind of hardware interaction?

For example, if I have a SCSI hard dri

4条回答
  •  梦谈多话
    2021-01-24 13:06

    No, since Java runs in a "virtual" machine rather than a real one. But it could be used as a bridge as dj mentioned earlier using JNI.

    According to Wikipedia JNI can also call assembly directly. JNI could be used to call complete programs written in C or C++

提交回复
热议问题