Learning Library

← Back to Library

Understanding Java JRE and JDK

Key Points

  • Java has been around for over 25 years and remains one of the world’s most popular programming languages.
  • The Java Runtime Environment (JRE) provides the libraries, class loader, and Java Virtual Machine (JVM) needed to run Java applications.
  • The Java Development Kit (JDK) builds on the JRE by adding development tools such as the Java compiler, enabling you to create Java programs.
  • Typical development workflows involve writing source code, compiling it with the JDK, and distributing the compiled program to users who only need the JRE to execute it.

Full Transcript

# Understanding Java JRE and JDK **Source:** [https://www.youtube.com/watch?v=fDXMo3lX-Ug](https://www.youtube.com/watch?v=fDXMo3lX-Ug) **Duration:** 00:05:33 ## Summary - Java has been around for over 25 years and remains one of the world’s most popular programming languages. - The Java Runtime Environment (JRE) provides the libraries, class loader, and Java Virtual Machine (JVM) needed to run Java applications. - The Java Development Kit (JDK) builds on the JRE by adding development tools such as the Java compiler, enabling you to create Java programs. - Typical development workflows involve writing source code, compiling it with the JDK, and distributing the compiled program to users who only need the JRE to execute it. ## Sections - [00:00:00](https://www.youtube.com/watch?v=fDXMo3lX-Ug&t=0s) **Java Runtime Environment Explained** - The speaker introduces Java’s longevity, then details the JRE—its libraries, class loader, and JVM—and explains that installing the JRE is required for any Java program to run. ## Full Transcript
0:00i have a technology pop quiz for you 0:03what programming language has been 0:04around for over 25 years and is one of 0:07the most popular languages in the world 0:10the answer of course is java hello my 0:13name is jamil spain developer advocate 0:16with ibm cloud 0:18and with today's topic i wanted to get 0:20more into the 0:21jre and the jdk which are usual acronyms 0:25you hear when it comes to how do i get 0:28started with java so let's go ahead and 0:30dive in 0:31now the jre stands for the java 0:37runtime 0:40environment and i'm going to abbreviate 0:43environment there and as you can elude 0:45from the name it really means a set of 0:49software that's there to help java 0:51applications run 0:53now the components of the jre 0:55include of course the java 1:03java libraries which you consider them 1:04to be more like pre-written 1:10code 1:11writing a little fast there 1:13next we'll have the 1:15java 1:17class 1:19loader 1:21and these names are all self-explanatory 1:23but we'll keep breaking them down its 1:25job naturally is to take a lot of the 1:27java libraries and load 1:29them into something 1:32that we call 1:35the jvm 1:37and the last one of course is the java 1:41virtual 1:45machine 1:47also known as the jvm 1:50and it is the actual engine that 1:52actually runs 1:54the actual java code that's written and 1:57so 1:58these all kind of work together 2:00although you may receive a java program 2:03it won't run i won't understand how to 2:05run and still you until you install 2:08the jre uh 2:11kind of libraries to be there you can 2:13get these from your usual providers most 2:16of the time any kind of standard 2:19editor that you want to use i know i 2:21commonly use visual studio code that has 2:24like language packs that can help you 2:25get started to do languages like you 2:28know java python golang no js any kind 2:32of language any of the requirements 2:34needed to be there this is the primary 2:36stuff just to run these these programs 2:39now you'll probably hear something else 2:41which is called the 2:42jdk and that stands for the java 2:45development 2:51kit 2:53now the jdk will actually include the 2:56jre 3:02and as you can elude it will give you 3:04the additional capability to now 3:06create applications as it will actually 3:09include something called the 3:11java 3:13compiler 3:17all right so to break this down together 3:18jre is for running the applications and 3:21you can generally to run any kind of job 3:23application you will need the jre to be 3:25installed you can get it as a standard 3:27operating system mostly upgrades 3:30it can be searchable that way or if 3:32you're into 3:33uh any kind of particular development 3:35you'll have usually most editors will 3:37have the capability to download these 3:39additional libraries now once you under 3:41create applications you'll get the jdk 3:44so you can go and directly get the gre 3:46on its own or get the jdk which will 3:48include the jre to have it there to be 3:50available and that's how the process 3:52kind of works whenever you start writing 3:54applications you'll start with source 3:57code 4:01that source code will have to be 4:02compiled 4:06and then the final version there is the 4:08actual java application the java program 4:14that you can then distribute to someone 4:16else and all they may need is the actual 4:18jre and this process has to keep coming 4:21as i make changes to source code i have 4:23to compile it now i have a program i run 4:26it to make sure it's there 4:27and then i start back over and keep 4:29going through this continuous iterative 4:31loop to kind of function 4:33and go 4:35so as one of the most popular languages 4:38this is the exact way to get started 4:40you'll see these two acronyms that come 4:42up when you start diving into the java 4:44ecosystem it is a language that is 4:46popular among individual developers 4:49as well as in the enterprise space is 4:51something that's that's always out there 4:53and it's very powerful language 4:55especially with all the libraries that 4:57are there and the capabilities it can 4:58provide for you to go 5:01so with that being said that's all for 5:03today thank you for your time i'll see 5:05you next time 5:07if you have any questions please drop us 5:09a line below 5:10and if you want to see more videos like 5:12this in the future please like and 5:15subscribe 5:31you