users@glassfish.java.net

Re: Windows Installer fails on Win7 Pro SP1 (64 Bit, de_DE)

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Fri, 22 Jul 2011 12:34:20 -0500

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