Setting the environment of JAVAS