How to install Oracle JDK 22 in Windows 11 with JAVA_HOME Environment Variable

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



Category:
Tutorial
Duration: 5:41
17 views
0


In this video we are going to see How to install Oracle JDK 22 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 EmailValidator and EmailValidatorClient Modules. Each Module must contain module-info.java which is mandatory.
classes ---- will store all the compiled class files of Java Modules.


Here EmailValidator Module contains module-info.java which exports the com.javafrm package, so that other modules can access the package and
com.javafrm package contains EmailValidator.java and has one method which contains logic to validate the EmailID.
Class name and Method return type should be public, then only you can access this class from other modules.

Next EmailValidatorClient Module contains contains module-info.java which requires (calls) EmailValidator Module.
It contains org.javafrm package which contains EmailValidatorClient.java (Main class) and access the class and methods from EmailValidator Module.

Example Java Commands:

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

javac --module EmailValidatorClientModule -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 EmailValidatorClientModule/org.javafrm.EmailValidatorClient


#oraclejdk #oracle #java22 #jdkinstallation #installjdk #installjava #javainstallation #javajdk #javahome #windows11 #jdk21




Other Videos By java frm


2024-03-20How to install golang 1.21 on AlmaLinux 9 from zip archive - GO 1.21 installation on linux
2024-03-20How to install golang 1.22 on Fedora 39 from zip archive - GO 1.22 installation on linux
2024-03-20How to install golang 1.21 on Fedora 39 from zip archive - GO 1.21 installation on linux
2024-03-20How to install golang 1.22 on Oracle Linux 9 from zip archive - GO 1.22 installation on linux
2024-03-20How to install golang 1.21 on Oracle Linux 9 from zip archive - GO 1.21 installation on linux
2024-03-20How to install golang 1.22 on Red Hat Enterprise Linux 9 from zip archive - GO 1.22 on RHEL 9
2024-03-20How to install golang 1.21 on Red Hat Enterprise Linux 9 from zip archive - GO 1.21 on RHEL 9
2024-03-20How to install golang 1.22 on Rocky Linux 9 from zip archive - GO 1.22 installation
2024-03-20How to install golang 1.21 on Rocky Linux 9 from zip archive - GO 1.21 installation
2024-03-19How to install OpenJDK 22 in Windows 11 with JAVA_HOME Environment Variable
2024-03-19How to install Oracle JDK 22 in Windows 11 with JAVA_HOME Environment Variable
2024-03-15Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 9
2024-03-15Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 8
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 7
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 6
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 5
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 4
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 3
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 2
2024-03-14Red Hat Enterprise Linux 8 Packages - Full Details of All Packages - Part - 1
2024-03-09Apache NetBeans IDE 21 Tutorial - Short Cut to insert throws - th + Tab Key



Tags:
how to install oracle java 22 on windows 10 from zip file
how to install oracle jdk 22
oracle jdk 22 installation
how to install java 22
java 22 installation
install and configure oracle jdk 22 from zip file
java se 22
java 22
jdk 22
how to set java_home environment variable
java 22 tutorials
java 22 videos
java video tutorial
java 22 for windows
install java jdk 22
java modular programming
java modules example
jpms
how to compile and run java modules