Added support for java applications