Is there a Java library of Unix functions?

后端 未结 4 1516
情深已故
情深已故 2020-11-30 07:18

I am looking for a Java library to interface with standard Unix functions, i.e. stat(), getpwuid(), readlink().

This used to e

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 07:44

    I would be surprised to see one, considering it would almost necessarily be platform-specific. Java is not the best tool for that job. But you could certainly hook in via JNI or calls out to external programs if you insist. Or perhaps look into Groovy, which I understand is reasonably good for shell scripting, though I have no personal experience with it.

提交回复
热议问题