Error “do not run executable directly. Use migrateEnforce.bat instead”
search cancel

Error “do not run executable directly. Use migrateEnforce.bat instead”

book

Article ID: 234583

calendar_today

Updated On:

Products

Data Loss Prevention

Issue/Introduction

While running the Phase1 migrateEnforce.bat file, the process is failing with the following error. 

Error: do not run executable directly. Use migrateEnforce.bat instead.

 

Environment

Release : 15.8+

 

Resolution

This is caused by passing the backslash "\" character at the end of the java path when the migration utility is asking for the Java path.  

For example the following is passed when running the migration utility when you see the error:

C:\Program Files\AdoptOpenJRE\jdk8u262-b10-jre\

To address this please run the migration again but this time pass it the following:

C:\Program Files\AdoptOpenJRE\jdk8u262-b10-jre

Please note its missing the backslash "\" character at the end of the path.  Also your java path may vary but key is the backslash "\" character at the end.