Please try below steps and see what happens.
Just a workaround for those who need it when facing same issue.
-
Open terminal from your Mac and enter the command:
printf “%s\n” $PATH
–>The purpose is to print the current setting for you Mac’s path -
Get the value from the Terminal out put. In my case was:
/usr/local/bin:/usr/bin:/usr/sbin:/sbin -
Right click on the execution.java file in Eclipse then choose [Run Configuration]
-
Click to tab [Environment] then click on [New]
- Name: PATH
- Value: /usr/local/bin:/usr/bin:/usr/sbin:/sbin
-
Apply then run