reboot environment and configure for scala