Java is properly installed in my Ubuntu 12.04 and the PATH variable is set in the .bashrc file.
.bashrc
The command java -version gives an expected out
java -version
You can explicitely tell your eclipse session which jdk/jre you want it to start with adding the following in your eclipse.ini:
eclipse.ini
-vm home/..../jre/bin/javaw.exe