Fixes issue mentioned in comments for jrburke/r.js#221 about Java usage