embed library with mode
improve ease of calling library in shellmaker mode (avoid having to cast, cast still required in desktop mode)
make sure to set the java.home property to the jdk/jre directory, or all kinds of things go bad