After some search on the forum. It seems that if javaclasspath.txt is located in the "preference directory" it will be loaded correctly.
I tested it out and seems to be working now.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!