(comment too long)
Let's say I want to use the same JRE to execute my Java program from how can I find the java executable?
On Linux, the java executable is the first executable file named "java" found in your path.
For instance:
... $ echo $PATH /home/f/jdk1.6.0_33/bin:/usr/local/bin:/usr/bin:/bin ... $ which java /home/f/jdk1.6.0_33/bin/java
You can install as many JRE / JDKs as you want. You can even trivially create user accounts with Java (for example, a user account for development) and a user account without Java (for example, a user account without Java, which you will use only for viewing on the Internet [see Comment]).
If you try to start Eclipse when $ PATH does not contain the Java executable, and if you did not install the JRE / JDK inside ~ / eclipse /, then Eclipse should file a complaint and refuse to run:
"JRE or JDK must be installed to run Eclipse"
At this point, and if you installed Java, you can simply add it to $ PATH, and Eclipse should run:
... $ export PATH=~/jdk1.6.0_33/bin:$PATH
source share