Oracle setup.exe space sensitivity when specifying jre absolute path

applecrusher picture applecrusher · Jun 24, 2013 · Viewed 7.8k times · Source

I am currently setting up Oracle Enterprise edition for my computer. That means I use the Oracle Universal Installer to launch the program. When I launch the setup.exe file from my computer and give the specified arguments:

setup.exe -jreLoc "C:\Program Files\Java\jre7"

I get the following error:

C:\Program\bin\javaw.exe was not found.

However if I copy the jre7 directory over to the C:\ directory so the path is now C:\jre7 then it works. I tried with quotes and it thinks its part of the path file. Single quotes fail as well.

My questions is for the Oracle setup.exe launcher how do you specify a space in the path of the jreLoc since quotes seem to fail?

Answer

applecrusher picture applecrusher · Jun 25, 2013

Changing "Program Files" to "progra~1" worked as suggested in the comments above.