adding connect java