Adding Java Check in Scripts