Not able to use Axis IP Camera with OpenCV

I am using OpenCV 3.2 jar file.
Below is my code snippet. I camera IP link wks fine in browser. but VideoCapture does not with IP Camera link.
if (capture.isOpened()) always returns false;. Can you guide what i need to do here.