Hello, I have the same problem, but found, that it is caused by NOD32 antivirus. The problem is at all PCs running NOD32 not depending on JAVA version. I tested it on PC without NOD32 and after installing NOD32 the problem occurred and after deinstalling disappeared.
When I use iSPY to watch the camera it is working with JPEG setting. MJPEG is not working.