Hi all, I am curious to know how eclipse finds for an installed JRE when I run eclipse for the first time.
JDK and JRE works fine if i copy the installation folder from one system to other. I need not use the msi or exe to install JDK for the second system. My question is, will eclipse find out whether JRE is installed or not when I first run the IDE after copying JDK and JRE folder in the system.
Eclipse defaults to the Java executable in the PATH. On Windows, this is usually c:\windows\system32\java.exe. The JRE/JDK installation always copies java.exe to that directory. (Actually, thinking about it, I suspect that the java.exe is not even used, but rather Eclipse reads the registry to locate the jvm.dll to load. But the result is the same since the java.exe in system32 also reads the registry to locate jvm.dll.)
If you have multiple JDKs installed and want Eclipse to use a specific one, you can always add a -vm entry to the eclipse.ini file.
But if I just copy the installed JDK and JRE folders to another computer it runs without hassle. When I do so, neither registry entry nor the java.exe would be copied to system32 folder. In that case, how will eclipse find the exact copied JRE from my system. Also I can copy the JDK and JRE folders to anywhere in my new system so that I avoid default place where they are installed using microsoft installer or exe files.