only build java extension