I had the same problem, I got the solution after many attempts.
If you are using Jenkins as a windows service you need to do the following :
1) In windows, service select the service of Jenkins
2) Open the properties window of the service -> Logon-> enable the checkbox “Allow service to interact with desktop”
After then you should reboot the service Jenkins
This solution works ONLY on windows XP, hope this helps you