Is there a Java library of Unix functions?

后端 未结 4 1514
情深已故
情深已故 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:21

    I don't know any library with the Unix functions.

    for most of the functions, I believe, you can use the standard Java API to do what you want. for example, there's no need to use the command ls to read the files of some directory. but in some specific cases, like stat (to find out if a file is a link) you have to use JNI.

提交回复
热议问题