How to install Bellsoft Liberica JDK 21 in Windows 11 with JAVA_HOME Environment Variable

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



Category:
Tutorial
Duration: 7:09
2 views
1


In this video we are going to see How to install Bellsoft Liberica JDK 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

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




Other Videos By java frm


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
2024-01-02Debian 12 Installation on VMWare Workstation 17.5 with VMWare Tools - Shared Folder, Clipboard, DnD
2024-01-02Debian 11.8 Installation on VMWare Workstation 17.5 with VMWare Tools - Shared Folder,Clipboard
2024-01-02Arch Linux 2023 Installation on VMWare Workstation 17.5 with VMWare Tools - Shared Folder, Clipboard



Tags:
how to install liberica jdk 21 on windows
install liberica jdk 21 from zip
liberica openjdk windows
liberica openjdk 21
bellsoft jdk 21
liberica java
liberica jdk installation with java_home environment variable
bellsoft java
bellsoft liberica jdk tutorial
how to set java_home environment variable
bellsoft liberica java for windows
java 21
java se 21
liberica jdk 21
liberica javase 21
liberica jdk installation tutorial
java tutorial
java modular programming