EMCLI setup Fails on Windows When the OS Username has ! in it

(Doc ID 2132725.1)

Last updated on AUGUST 28, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 and later
Information in this document applies to any platform.

Symptoms

EMCLI setup command fails with the following error if the OS username has special character ! in it. Example: Oracle! , kvn2016! etc.

Exception in thread "main" java.lang.ExceptionInInitializerError
at oracle.sysman.emSDK.emCLI.CLIController.init(CLIController.java:112)
at oracle.sysman.emSDK.emCLI.CLIController.<init>(CLIController.java:107)
at oracle.sysman.emSDK.emCLI.CLIController.<clinit>(CLIController.java:72)
Caused by: java.lang.IllegalStateException: EM CLI Installation directory doesn'exist
at oracle.sysman.emCLI.EMCLIStateManager.init(EMCLIStateManager.java:311)
at oracle.sysman.emCLI.EMCLIStateManager.<clinit>(EMCLIStateManager.java:76)
... 3 more

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms