make java libraries optional