Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloads and Classpath

 
jignesh soni
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK1.6.0_01 contains jre, do I still need to jre separately ? if yes, why ?

JDK contains bin folder and it also contains JRE folder. Now inside JRE, there is a bi folder. So which bin folder I set my path to ?

In Head First Java book, it is mentioned to download J2SE documentation API and on java.sun.com, there is Java SE 6 Documentation. Is this the one mentioned in book and a developer is supposed to download ?if not then which Documentation API shall I download ?

My jdk download is in c directory , so command to set path will be
c:>set path=c:\jdk1.6.0_01\jre\bin is this right ? Do I point to jre bin or just jdk bin ?)
now if I want to make this path permanent, at command prompt I type
c:>%path%;set path=c:\jdk1.6.0_01\jre\bin is this right,pls correct if not

Thanks for co-operation
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

The JDK includes the JRE, and you do not need a "separate" JRE.

Assuming that you are running Windows, see Sun's JDK installation instructions. Step 4 describes setting the PATH variable for the JDK bin directory.

Yes, the "Java SE 6 Documentation" sounds correct. See Sun's documentation installation instructions.

Let us know how this works for you.
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi jignesh soni:

JDK contains bin folder and it also contains JRE folder. Now inside JRE, there is a bin folder. So which bin folder I set my path to ?....


You have to set your path variable to point to BIN folder inside JDK HOME DIRECTORY in your case its c:\jdk1.6.0_01\
You have to use
c:\>set path=c:\jdk1.6.0_01\bin;

For further information follow this link
Setting Up Java
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic