add java only script for c-o-m