Thanks. I'm able to recreate the problem now. The key is:
1. "java" does show up in the PATH
2. JAVA_HOME is set with the double quotes and with a directory name
with a space, i.e., "Program Files". If you use Progra~1 you get a
different error.
With this setup, I see a create-domain failure with the IllegalArgument
exception that you are seeing.
The root cause of the problem is that asadmin tries to run Runtime.exec
on the String:
"C:\Program Files\Java\jdk1.6.0_25"/bin/keytool
and this produces the IllegalArgumentException which isn't caught by the
code.
Tom