You're probably not "running Phonegap", your script doesn't show and you don't descripe how it "doesn't work". Hard to help, this way. Can you be more specific?
What version of PhoneGap CLI are you using? Is there any reason you're using Eclipse? For native Android development, you should use Android Studio instead. For Cordova, you can use any text editor you like (I like VSCode, WebStorm, Brackets, Atom, etc.). In that case Eclipse is fine if that's your preference, but I want to make sure you aren't running a very out-dated version of PG.