Fixing embedded JAR loading. (need to fix resource loading).