answersLogoWhite

0


Best Answer

Age old question. :)

Simply Put:

- If you need to execute any java program you need JRE (as the name says "Runtime Env").

- If you need to compile some java code you ll need JDK (as the name says "Development Kit").

One more thing to be noted is JRE will always be shipped with JDK because as I mentioned earlier JDK compiles the code, so if you want to execute the compiled code you need JRE.

Hope this helps.

.

The "JDK" is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The "JRE" is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs.

Typically, each JDK contains one (or more) JRE's along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between jdk and JRE?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do you need JRE if you already have JDK?

No, the JDK includes the JRE.


What's the difference between JVM and JDK?

There are two main things you can download for Java: the Java Runtime Environment (JRE) and the Java Development Kit (JDK). The JRE is used by those who wish only to run Java programs. In order to do this it uses the Java Virtual Machine (JVM) to run Java bytecode. The JDK is used by developers and contains both the JRE and the programs and libraries needed to compile and run Java programs. Simple summary: The JDK contains the JRE which contains the JVM.


JDK version is same as JRE version?

No, not necessarily. JDK stands for Java Development Kit and JRE stands for Java Runtime Environment. They can be of the same or different versions each. It is better if we have two compatible or same versions of JDK and JRE installed for ease of use.


Do you hava different jre for every editionEESEME of the java platform like jdk does jre too has all the java libraries?

First of all, JDK is Java Development Kit and JRE is java runtime Environment. JDK provides compiler and all the necessary tools to write the code verses JRE provides with the environment in which the java code will run.


What is difference between jvmjre and jdk?

JVM Stands for Java Virtual Machine. JVM is the virtual machine in which a java program gets executed. JRE stands for Java Runtime Environment. JRE is the runtime set up that is required by the JVM to execute java programs. JDK stands for Java Development Kit. JDK is the basic software that gets downloaded from sun's java website if anyone wants to use java.


Where do you put the javax.comm.properties file in Linux?

/usr/java/<jdk>/jre/lib/


What are the different versions of jdk?

There's only the JRE and JDK. the JRE (Java Runtime Environment) is equipped with the basic necessities a client (read: the average home user or business/office employee) computer would need. The JDK (Java Development Kit) contains the JRE plus development tools (i.e. libraries) for software developers to get started to writing applications with Java.


How is JRE or JVM installed on a computer?

The JVM is part of the JRE (Java Runtime Environment) or the JDK (Java Developer Kit). Both the JDK and JRE are packages available from a variety of sources. The most common one is available from Sun (now Oracle). You simply visit the web site, and it will then download and install the JRE for you after you answer a couple of questions: http://www.java.com/


What is the difference between jdk 1.4 and jdk 1.6?

jdk 1.4 not hve for each regulear expression exception changing


If your java program says no compiler is available what does that mean?

It means you have not installed jdk and jre in your machine...


What is jdk?

it is a ducks beak that is used to vomit out fish


Does jdbc come along with j2ee?

JDBC comes as part of the standard JDK & JRE set up.