Results 1 to 13 of 13
Like Tree4Likes
  • 1 Post By SurfMan
  • 1 Post By jim829
  • 2 Post By KevinWorkman

Thread: Difference between Eclipse and JDK?

  1. #1
    truely is offline Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0

    Default Difference between Eclipse and JDK?

    Hello,

    I'm not sure if that's the right place to ask
    But I am a bit confused:
    I know that JDK means "Java Development Kit" , but isn't Eclipse the same thing? (so why it's called "IDE"?)
    Or maybe Eclipse is a type of JDK?
    Or actually JDK and Eclipse are 2 different things

    Thanks

  2. #2
    SurfMan's Avatar
    SurfMan is online now Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    946
    Rep Power
    2

    Default Re: Difference between Eclipse and JDK?

    Ecplise *uses* the JDK to let you develop your stuff.
    truely likes this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  3. #3
    truely is offline Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0

    Default Re: Difference between Eclipse and JDK?

    Thanks, and when you run a program in Eclipse, it also uses the JRE ?

  4. #4
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,603
    Rep Power
    5

    Default Re: Difference between Eclipse and JDK?

    Yes. In fact, Eclipse itself is run by the JRE since Eclipse is written in Java.

    Regards,
    Jim
    truely likes this.
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,962
    Rep Power
    8

    Default Re: Difference between Eclipse and JDK?

    The JDK is a set of tools used for creating and manipulating Java code. It includes things like javac that converts your .java files into byte code and the jar tool that helps build jars. Recommended reading: Java Development Kit - Wikipedia, the free encyclopedia

    The JRE is a set of tools used for running byte code, which is created by the JDK. Recommended reading: Java virtual machine - Wikipedia, the free encyclopedia

    The JDK contains a JRE, because it doesn't make a ton of sense to be able to create code that you can't run.

    An IDE is completely separate from either the JDK or the JRE, and it's just a fancy text editor with tools that make programming easier. An IDE might use the JDK to compile your code into .class files, and it might use the JRE to run those .class files. Recommended reading: Integrated development environment - Wikipedia, the free encyclopedia

    A programmer uses an IDE to write Java code and the JDK to take that code and compile it into byte code. An end-user (the person you send your program to) uses the JRE to run that byte code.

    Think of it this way: You use Word (which is like an IDE) to write a document (which is like Java code). You then use a converter program (which is like the JDK) to convert that document into a PDF (which is like byte code). You send the PDF to your friend, who uses a PDF viewer (which is like the JRE) to view the document.
    SurfMan and truely like this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    SurfMan's Avatar
    SurfMan is online now Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    946
    Rep Power
    2

    Default Re: Difference between Eclipse and JDK?

    KevinWorkman's answer should be in every Java starter's textbook. (It probably is :))
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,010
    Rep Power
    6

    Default Re: Difference between Eclipse and JDK?

    Quote Originally Posted by SurfMan View Post
    Ecplise *uses* the JDK to let you develop your stuff.
    Nitpick: you only actually need a runtime as far as I know; Eclipse has its own built-in cumulative compiler.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    SurfMan's Avatar
    SurfMan is online now Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    946
    Rep Power
    2

    Default Re: Difference between Eclipse and JDK?

    Quote Originally Posted by gimbal2 View Post
    Nitpick: you only actually need a runtime as far as I know; Eclipse has its own built-in cumulative compiler.
    Ah well, who's using Eclipse anyway? :) IntelliJ IDEA FTW!
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  9. #9
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,010
    Rep Power
    6

    Default Re: Difference between Eclipse and JDK?

    Maven FTW!

    (pfff, being dependent on an IDE)
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  10. #10
    truely is offline Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0

    Default Re: Difference between Eclipse and JDK?

    Quote Originally Posted by KevinWorkman View Post
    The JDK is a set of tools used for creating and manipulating Java code. It includes things like javac that converts your .java files into byte code and the jar tool that helps build jars. Recommended reading: Java Development Kit - Wikipedia, the free encyclopedia

    The JRE is a set of tools used for running byte code, which is created by the JDK. Recommended reading: Java virtual machine - Wikipedia, the free encyclopedia

    The JDK contains a JRE, because it doesn't make a ton of sense to be able to create code that you can't run.

    An IDE is completely separate from either the JDK or the JRE, and it's just a fancy text editor with tools that make programming easier. An IDE might use the JDK to compile your code into .class files, and it might use the JRE to run those .class files. Recommended reading: Integrated development environment - Wikipedia, the free encyclopedia

    A programmer uses an IDE to write Java code and the JDK to take that code and compile it into byte code. An end-user (the person you send your program to) uses the JRE to run that byte code.

    Think of it this way: You use Word (which is like an IDE) to write a document (which is like Java code). You then use a converter program (which is like the JDK) to convert that document into a PDF (which is like byte code). You send the PDF to your friend, who uses a PDF viewer (which is like the JRE) to view the document.
    Thank you very much!
    Just a last thing : So if I only download JDK, will it be possible to write code without Eclipse?

  11. #11
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,406
    Rep Power
    25

    Default Re: Difference between Eclipse and JDK?

    will it be possible to write code without Eclipse?
    Absolutely!!!
    If you don't understand my response, don't ignore it, ask a question.

  12. #12
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,962
    Rep Power
    8

    Default Re: Difference between Eclipse and JDK?

    Quote Originally Posted by truely View Post
    Thank you very much!
    Just a last thing : So if I only download JDK, will it be possible to write code without Eclipse?
    Yep, and in fact, I recommend using a basic text editor (I'm a big fan of JEdit: jEdit - Programmer's Text Editor - overview) to write code and the command line to compile and run your code. Using an IDE hides things that are crucial for a beginner programmer to understand.

    Of course, just like everything else in programming, there are multiple schools of thought on this!
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  13. #13
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,010
    Rep Power
    6

    Default Re: Difference between Eclipse and JDK?

    Quote Originally Posted by KevinWorkman View Post
    Of course, just like everything else in programming, there are multiple schools of thought on this!
    Prepare for the fish slapping dance!
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. difference between RPT & eclipse
    By ratnamsr.mullapudi in forum Eclipse
    Replies: 1
    Last Post: 03-23-2012, 12:19 AM
  2. Difference between Eclipse and McEclipse Blue?
    By Duthie in forum New To Java
    Replies: 3
    Last Post: 12-31-2011, 08:52 PM
  3. what is the difference
    By ron87 in forum New To Java
    Replies: 5
    Last Post: 01-04-2011, 04:31 PM
  4. difference
    By nishant in forum New To Java
    Replies: 2
    Last Post: 09-17-2008, 06:04 PM
  5. Difference between ASP and JSP
    By barney in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 07:15 AM

Posting Permissions

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