How can I execute command passwd in solaris with Java (ProcessBuilder)

Hi all, my problem is that I want to change the user password in solaris 10, but from a Java programm, I was trying with ProcessBuilder but I don't know how insert the new password, Who can help me?
[206 byte] By [Jizaca] at [2007-11-26 18:12:55]
# 1
It would sound totally inappropriate for a java process to change a login password in the first place.
warnerjaa at 2007-7-9 5:45:53 > top of Java-index,Java Essentials,Java Programming...
# 2
I'm not sure, but I think passwd is one of those programs that only lets itself be run interactively from a terminal.
jverda at 2007-7-9 5:45:53 > top of Java-index,Java Essentials,Java Programming...