Well, the workaround shown here seems to work for Java 6:
I need to use Java 7 or even Java 8 though. I will update to last Matlab release to see if it is fixed.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!