How to install Red hat OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable

Channel:
Subscribers:
5,740
Published on ● Video Link: https://www.youtube.com/watch?v=XlPFlpH0b4w



Category:
Tutorial
Duration: 6:26
1 views
0


In this video we are going to see How to install Red hat OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable and How to Compile and Run Java Module Program.

In this Example.
src --- contains two java modules Message and Print Modules. Each Module must contain module-info.java which is mandatory.
classes --- will store all the compiled class files of Java Modules.

Here Message Module contains module-info.java which exports the com.javafrm package, so that other modules can access the package and com.javafrm package contains Message.java and has one method.
Class name and Method should be public, then only you can access this class from other modules.
Next Print Module contains contains module-info.java which requires (calls) Message Module.
It contains org.javafrm package which contains HelloWorld.java (Main class) and access the class and methods from Message Module.

Example Java Commands:

javac --module MessageModule -d D:\Java-Module-Programs\Modules\classes --module-source-path D:\Java-Module-Programs\Modules\src

javac --module PrintModule -d D:\Java-Module-Programs\Modules\classes --module-source-path D:\Java-Module-Programs\Modules\src

java --module-path D:\Java-Module-Programs\Modules\classes --module PrintModule/org.javafrm.helloworld


#redhatopenjdk #java #jdkinstallation #installjdk #installjava #javainstallation #javajdk #javahome #windows11 #jdk21




Other Videos By java frm


2024-01-08How to install Eclipse Temurin OpenJDK 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Oracle JDK 21 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Oracle JDK 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install OpenJDK 21 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install OpenJDK 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Bellsoft Liberica JDK 21 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Bellsoft Liberica JDK 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Amazon Corretto 21 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Amazon Corretto 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-05How to install Azul's Zulu OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install Red hat OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install Oracle JDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install Bellsoft Liberica JDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install Eclipse Temurin OpenJDK 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-05How to install Amazon Corretto 21 in Windows 11 with JAVA_HOME Environment Variable
2024-01-04RHEL 9.3 Installation on VMWare Workstation 17.5 with VMWare Tools Shared Folders, Clipboard, DnD
2024-01-04Rocky Linux 9.3 Installation on VMWare Workstation 17.5 with VMWare Tools Shared Folders, Clipboard
2024-01-04Oracle Linux 9.3 Installation on VMWare Workstation 17.5 with VMWare Tools Shared Folders, Clipboard
2024-01-04Alma Linux 9.3 Installation on VMWare Workstation 17.5 with VMWare Tools Shared Folders, Clipboard
2024-01-04Fedora 39 Workstation installation on VMWare Workstation 17.5 with VMWare Tools



Tags:
how to install red hat openjdk 21 on windows 11 from zip file
how to install red hat openjdk 21
red hat openjdk 21 installation
java 21 installation
how to install java 21
install and configure openjdk 21 from zip file
java se 21
jdk 21
how to set java_home environment variable
java 21 tutorials
java 21 videos
java 21 installation video
java video tutorial
java 21 for windows
java modular programming example
how to run and compile java modules
modular java