This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a dual boot PC . Both of them Windows . I installed first Windows in drive C: and immediately installed Eclipse and used that , then installed second Windows on drive D: and didn't installed a new Eclipse and used the first Eclipse in second Windows . But when i run Java applications , Eclipse didn't work correctly and it shows that it uses JRE that was installed in C: in the first Windows and i think that it is the source of my problems . How i can change JRE in my Eclipse to the new ones that installed in the second Windows ? Thanks
Another possibility is to edit the eclipse.ini file and add the following lines just before the "-vmargs" line:
The <path-to-jvm> cane being a full path to either the java or javaw executables or to the jvm DLL (Windows) or SO (Linux)
For example, on my Windows system I have (I use server because it is a 64-bit JVM):