Did a bunch more testing and was able to get it to work with Matlab, but
you must compile it in jre6 due to MATLAB's outdatedness