Using Kiosk mode for test testing,fixed java issue