The path to p4 should be the location of the p4 executable.

On Windows, likely: C:\\Program Files\\Perforce\\p4.exe
On *nix, likely: p4 or /usr/local/bin/p4