getuid / getgid in Java?

Hi, I am developing a Java program in Linux. I need to obtain the User ID (uid) and Group ID (gid) running the program. This is easy to do with the getuid() and getgid() calls in a C program. How do you do this in Java SE?Thanks,
[243 byte] By [koksallimana] at [2007-11-27 6:14:35]
# 1
<google proxy>Have you seen this? http://jigsaw.w3.org/Doc/Programmer/api/org/w3c/util/Unix.html</google proxy>
corlettka at 2007-7-12 17:24:14 > top of Java-index,Java Essentials,New To Java...
# 2
Yes but it is part of Jigsaw. I don't want Jigsaw.
koksallimana at 2007-7-12 17:24:14 > top of Java-index,Java Essentials,New To Java...
# 3
So you get jigsaw, which is open source, and extract the classes you want.
corlettka at 2007-7-12 17:24:14 > top of Java-index,Java Essentials,New To Java...