Results 1 to 5 of 5

Thread: JRE vs JDK

  1. #1
    JavaJunkie is offline Member
    Join Date
    Apr 2009
    Posts
    12
    Rep Power
    0

    Default JRE vs JDK

    Hi,

    I've just installed java JDK in my computer, and I've seen their two folders, one is JDK, and other is JRE. I just wanna know if we are setting the path to JDK folder, and calling javac, and java tool in it, then what's the need of this JRE folder? What's its use here?

    Thanks in advance.

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    841
    Rep Power
    6

    Default

    Go thru this link.Its really useful.
    jGuru: What's the difference between JDK and JRE?

  3. #3
    conv_bay is offline Member
    Join Date
    Apr 2009
    Posts
    15
    Rep Power
    0

    Default

    just setting java with JDK..
    dont use JRE

  4. #4
    logicbug's Avatar
    logicbug is offline Member
    Join Date
    Jan 2009
    Location
    The Great White North, eh?
    Posts
    76
    Rep Power
    0

    Default

    JRE is the Java Runtime Environment.
    JDK is the Java Developer Kit

    You can't run java apps without the JRE and you cant compile Java classes without the JDK

  5. #5
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    For your everyday computer user, JDK would be a worthless bunch of junk, but the JRE could become quite useful... the JRE can run any Java applet or application, but it cannot use something that you just wrote, as the code must be compiled. The JDK does the compiling and creates the .class files, which are then used by the JRE to run the program. A Java programmer needs both, but for someone who only uses Java programs, all that is needed is the JRE
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •