java code to access system applications