• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Eclipse

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.



Thank you

Pramod
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Pramod R Bhat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Mr Peter.

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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic