java - How Does Eclipse find the JRE or JDK locaton? -


according eclipse faq. read

eclipse not consult java_home environment variable.

my doubt how eclipse initializes virtual machine. not know location of java. eclipse.ini file not have -vm configuration. still able run eclipse.

the source

update

according eclipse installation guide. eclipse not write entries windows registry.

as far know, invoke jvm, eclipse executes java command, so, if it's @ system execution path, eclipse won't need find instalation directory.

to check, can start os shell , execute next command (from location):

> java -version 

edit: (partially) wrong. faq (http://wiki.eclipse.org/faq_how_do_i_run_eclipse%3f#find_the_jvm)

if jvm installed in eclipse/jre directory, eclipse use it; otherwise launcher consult eclipse.ini file , system path variable

so, eclipse first looks inside eclipse/jre dir installed vms, if empty, consults eclipse.ini file, , @ last, looks @ system path.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -