MATLAB: Download agent error: Unable to launch application

MATLABunable to launch application

I just updated java and am trying to install Matlab 2013b on my Lenovo laptop. When I run the download agent I get the error message and details shown in the picture. After I click ok everything closes. Any ideas?
Thanks

Best Answer

Edit: Solved. Follow the instructions on this page
and enter "http://www.mathworks.com" on the exception site list.
Then run the download agent.