activate java and thread support