I am using a windows machine with multiple version of JRE installed.
If I run an eclipse RCP application, which version of JRE it will be using, the latest JRE version or the one mentioned under JAVA_HOME in Environment Variables -> System Variables?
In the
eclipse.inifile in the Eclipse installation directory, you can add the lines:Of course, adjust the path to the JDK / JRE you want Eclipse to use.
[EDIT] Re-reading your question, I notice you mention “and eclipse RCP application“, so perhaps you mean something else than Eclipse. The answer might be different then.
I suggest you add more tags (and improve the subject) to reflect better the scope of your question.
[EDIT] From a quick research, it seems that Eclipse RPC applications also use an .ini file (that’s the case of the Eclipse Memory Analyzer I have on my disk), so my trick above might work… It might depend on the launcher you want to use, too.