I have installed Eclipse as well as java. But my Eclipse does seems to be recognizing java installation.
I am using Eclipse Juno and java jre7
Make sure that you have install JDK version of Java.
Set the JAVA_HOME variable.
If Eclipse still doesn't recognize, manually select the java to be used in the project settings