add configure checks for java components