My Oracle Support Banner

Error: "INST-07004: Oracle home location contains one or more invalid characters" When Installing Weblogic (Doc ID 2145347.1)

Last updated on OCTOBER 02, 2023

Applies to:

Oracle WebLogic Server - Version and later
Primavera P6 Enterprise Project Portfolio Management - Version and later
Information in this document applies to any platform.


When attempting to install Weblogic, the following error occurs:

[VALIDATION] [ERROR]:INST-07004: Oracle home location contains one or more invalid characters
[VALIDATION] [SUGGESTION]:The directory name may only contain alphanumeric, underscore (_), hyphen (-), or dot (.) characters, and it must begin with an alphanumeric character. Provide a different directory name.
installation Failed. Exiting installation due to data validation failure. Logs are located here: C:\...
Press Any key to exit

The issue can be reproduced at will with the following steps:

  1. Launch the Weblogic install in command line
  2. See error in command window




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.