After setting the variable you have to restart SNAP. And please, check also in Tools -> Manage External Tools -> Segmentation-meanshift -> Edit -> System Variables that both variables are activated:
After setting the variable you have to restart SNAP. And please, check also in Tools -> Manage External Tools -> Segmentation-meanshift -> Edit -> System Variables that both variables are activated: