Tuesday, December 9, 2014

Microchip MPLAB X IDE v2.20 launch failure


Microchip MPLAB X IDE v2.20 would fail to launch on some machines/users.  No dialogs or errors appear, just nothing happens.  javaw.exe would start and then stop in the processes list.   This issue was difficult to troubleshoot initially because some unknown aspect of the environment could prevent launch.  There was no detectable consistancy between users and machines.  Some users would work on some machines not others.  Some machine installations would work for any logged on users, some would not.

Attempting a launch in a command window produced a message:

Your user directory (C:\Program Files\Microchip\MPLABX\mplab_ide) cannot reside
inside your NetBeans installation directory (C:\Program Files\Microchip\MPLABX\m
plab_ide).


The page above mentions using a --userdir launch parameter.  This was found to resolve the issue.

"C:\Program Files (x86)\Microchip\MPLABX\mplab_ide\bin\mplab_ide.exe" --userdir %USERPROFILE%\.mplab-ide

Note the preceeding period (.) at the beginning of the folder name!