make Main work in Eclipse