I searched for an existing question/answer on this and didn't find anything.
It's easy enough to use ulimit in a shell script to determine things like the process limit and the max open files limit.
But I cannot be sure that ulimit is available. If the program (which is written in Java) is run on Windows, it will be started by a cmd script (or possibly a powershell script if we're REALLY ambitious), and ulimit is definitely not going to be available. I want to do the detection and logging in Java, not the script that starts Java.
Is the information that ulimit provides on Linux available in cross-platform native Java code?