created seperate ports for java and scala