moving installation of java to separate file