Creating an "über-jar" that also contains all dependencies would also be an option, e.g. for freemarker. We could then later get rid of the String literals for the class names in the code. But for now, I'll change it as you suggest.