+ 3
[SOLVED] Does jdk contain jre?
I am trying to install jre 8u152 offline on my windows 10 x86 but the setup shows an error message saying that jre installation was not successful. But I am having the JDK setup. So will Installing the JDK also install the jre? THE PROBLEM IS NOW SOLVED
4 odpowiedzi
+ 1
JDK(Java Development Kit).
This is a Kit which provides the environment to develop and execute(run) the Java programs.
It includes:
- Development Tools(to provide an environment to develop your java programs)
- JRE (to execute your java program).
NOTE: JDK is only used by Java Developers.
JRE(Java Runtime Environment).
JRE contains the parts of the Java libraries required to run Java programs and is intended for end users. JRE can be view as a subset of JDK.
This is an installation package which provides environment to only run(not develop) the java program(or application)onto your machine.
JRE is only used by them who only wants to run the Java Programs i.e. end users of your system.
JVM (Java Virtual Machine).
This is a very important part of both JDK and JRE because it is contained or inbuilt in both (abstract machine).
It is a specification that provides runtime environment in which java bytecode can be executed.
Whatever Java program you run using JRE or JDK goes into JVM, JVM is responsible for executing the java program line by line hence it is also known as interpreter.
JVMs are available for many hardware and software platforms.
+ 13
Short answer is yes but I believe it would depends on your use case. 😉
Source:
https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.html
+ 7
Are there any detailed error message you got for the installation? It can be caused by a lot of factors like Windows UAC, x86/x64, network or corrupted files & etc.
0
yeah, what's the point of jdk if there is no jre to run Java codes?