• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Downloads and Classpath

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic