java heap space errors with Javaloader

A quick post as I couldn't find much on Google last night about getting this error with javaloader (from riaforge.org). I was trying to load the 3 main jars from the POI library and was getting a lot of java heap space errors.

I went through the docs/settings and it appears you can set on load the jars as a "trustedsource" (which is what you should do for production systems!) meaning: "Whether or not the source is trusted, i.e. it is going to change?". This actually defaults to false meaning for each run changes will be recompiled and loaded which is great for testing. Setting this to true has stopped any memory issues. Below is a snippet of my code so you can see how

if( NOT structKeyExists( server, "_loader")){ server._loader = createObject("component", "javaloader.JavaLoader").init(loadPaths = local.paths,trustedSource = true);}

As always don't forget to read the docs as it also explains more about production settings. compoundtheory.com/javaloader/docs/