Cisco MDS : device manager fails to launch with error: Could not create the Java Virtual Machine A fatal exception has occurred
Summary: Current device manager versions using a devicemanager.bat file may fail to launch due to windows security /data protection features.
Symptoms
Symptom 1. When launching the devicemanager.bat file, the device manager application fails to open, and logs the following message:
Could not create the Java Virtual Machine A fatal exception has occurred
Symptom 2. The device manager files were downloaded from a switch running 9.2 x code or from a current DCNM or NDFC server instance.
Symptom 3. The files are located in a windows 11 directory that is synced/protected by Microsoft One Drive.
Cause
Microsoft One drive is syncing the directory that the device manager files are being executed from and causes the java virtual machine failure.
Resolution
Fix: 1. Move the files to a directory on the PC that is not synced/protected by Microsoft One Drive. As an example, "Downloads" folder is typically not protected by one drive, you can unzip the files and launch the devicemanager.bat file from there without error. Alternative could be to disable One Drive sync on related directories or similar.
2. Launch the devicemanager.bat file as normal by double clicking or similar.
Additional Information
As a workaround it is possible to download earlier versions of device manager from an 8.4.2 code switch to manage switches at higher code levels. it will warn of version differences. This code versions uses a jnlp file rather than a .bat to launch the device manager application. You may need to set the exception lists in Java on your pc to be able to download it from the switch url/ip. Also you may need admin privileges to launch it depending on your companies security policies.