• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Installation Query

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,
i have some questions regarding the folders formed during the installation. i did a default installation of java 1.6 and it formed a folder called java in c:\program files(i am using Windows XP SP 2) . in 'java' two other folders were created - jdk and jre . jdk is my development environment , right ? and jre is used for the applications in my computer that might require the java runtime environment(like the web browser) , right ? inside the jdk folder there is one more jre folder . this provides the environment to run the applications that i create , right ? tell me if i am wrong in any way . i have further doubts . i have provided the path of only till the bin folder of jdk in the PATH environment variable and bin contains both javac.exe and java.exe so they both can be easily used to compile and run the aplications . but is not java.exe a part of the jvm(jre) and if it is , then how is jre initiated when i have not provided its path in the PATH variable ? how does java.exe initiate the jvm(or jre for that matter) ? and all the .class files are provided in rt.jar of the jre folder that's inside jdk folder but i have not given the path of jre then howcome my java applications are able to find , lets say , java.lang.* ? and yes there are other folders too within the jdk and the jre folder - i have no clue about them . what does each one of them does ?? i know i've put up so many questions in this post alone but i really need to find out things . if you can direct me to some resource that could help me , please do so . thanking in anticipation . Vaib.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Originally posted by vaibhav panghal:
i have some questions regarding the folders formed during the installation. i did a default installation of java 1.6 and it formed a folder called java in c:\program files(i am using Windows XP SP 2) . in 'java' two other folders were created - jdk and jre . jdk is my development environment , right ?


right

and jre is used for the applications in my computer that might require the java runtime environment(like the web browser) , right ?

right

i have further doubts . i have provided the path of only till the bin folder of jdk in the PATH environment variable and bin contains both javac.exe and java.exe so they both can be easily used to compile and run the aplications . but is not java.exe a part of the jvm(jre) and if it is , then how is jre initiated when i have not provided its path in the PATH variable ?

java.exe calls native code to start the jvm.

how does java.exe initiate the jvm(or jre for that matter) ?

I don't know.

and all the .class files are provided in rt.jar of the jre folder that's inside jdk folder but i have not given the path of jre then howcome my java applications are able to find , lets say , java.lang.* ?

It's part of the bootclasspath that's set up by the java.exe executable.

and yes there are other folders too within the jdk and the jre folder - i have no clue about them . what does each one of them does ?? i know i've put up so many questions in this post alone but i really need to find out things . if you can direct me to some resource that could help me , please do so . thanking in anticipation . Vaib.

I think the Java Language Specification may contain some of the answers you seek.
 
vaibhav panghal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
all right . that means i'm on the right path . i'll surely lookup JLS but the last time i browsed through it i cound not understand a word in it ( i am new to java ) . what's the right way to read the JLS ? thank you .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic