aspose file tools*
The moose likes Beginning Java and the fly likes Installation Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installation Query" Watch "Installation Query" New topic
Author

Installation Query

vaibhav panghal
Greenhorn

Joined: Feb 24, 2008
Posts: 25
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.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
vaibhav panghal
Greenhorn

Joined: Feb 24, 2008
Posts: 25
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installation Query