Fails to run under eclipse or idea