[java] create directories for resources (hxjava fix required)