Added java jails. Bug fixes