It might not work if you don't have the right plugins installed in Eclipse. Are you using the plain Eclipse; do you have things like the Web Tools Platform (WTP) installed and other
Java EE development tools installed in your Eclipse?
You can install additional plugins in Eclipse by selecting Help / Install New Software.