How to install OpenJDK 21 in Manjaro Linux 23 with JAVA_HOME Environment Variable

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



Category:
Tutorial
Duration: 7:33
1 views
0


In this video we are going to see How to install OpenJDK 21 in Manjaro Linux 23 for all users with JAVA_HOME Environment Variable and How to Compile and Run Java Module Program.

In this Example

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

Here DescendingSort Module contains module-info.java which exports the com.javafrm package, so that other modules can access the package and com.javafrm package contains DescendingSort.java.
Class name and Method should be public, then only you can access this class and required methods from other modules.

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

Example Java Commands:

javac --module DescendingModule -d /opt/Java-Module-Programs/Modules/classes --module-source-path /opt/Java-Module-Programs/Modules/src

javac --module DescendingClientModule -d /opt/Java-Module-Programs/Modules/classes --module-source-path /opt/Java-Module-Programs/Modules/src

java --module-path /opt/Java-Module-Programs/Modules/classes --module DescendingClientModule/org.javafrm.DescendingSortClient

#openjdk #java #jdkinstallation #installjdk #installjava #javainstallation #javajdk #javalinux #javahome #manjarolinux #jdk21




Other Videos By java frm


2024-01-19Red Hat Enterprise Linux 9 Packages - bind-dnssec-doc - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - appstream-data - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - adwaita-cursor-theme - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - adobe-source-code-pro-fonts - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - adobe-mappings-cmap-deprecated - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - adobe-mappings-cmap - Full Details of Package
2024-01-19Red Hat Enterprise Linux 9 Packages - abattis-cantarell-fonts - Full Details of Package
2024-01-12How to install Bellsoft Liberica JDK 17 in Manjaro Linux 23 with JAVA_HOME Environment Variable
2024-01-12How to install Amazon Corretto 21 in Manjaro Linux 23 with JAVA_HOME Environment Variable
2024-01-12How to install Amazon Corretto 17 in Manjaro Linux 23 with JAVA_HOME Environment Variable
2024-01-12How to install OpenJDK 21 in Manjaro Linux 23 with JAVA_HOME Environment Variable
2024-01-12How to install Bellsoft Liberica JDK 21 in Manjaro Linux 23 with JAVA_HOME Environment Variable
2024-01-11How to install Java JDK without removing Preinstalled OpenJDK in Linux Mint 21 - Unlink OpenJDK
2024-01-11How to install Azul's Zulu OpenJDK 21 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install Azul's Zulu OpenJDK 17 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install Eclipse Temurin OpenJDK 21 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install Eclipse Temurin OpenJDK 17 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install Oracle JDK 21 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install Oracle JDK 17 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install OpenJDK 21 in Linux Mint 21 with JAVA_HOME Environment Variable
2024-01-11How to install OpenJDK 17 in Linux Mint 21 with JAVA_HOME Environment Variable



Tags:
how to install openjdk 21 on manjaro linux
how to set java_home on manjaro linux
java_home environment variable in manjaro linux
how to install java on linux
java_home manjaro linux
java installation on manjaro linux
java installation on linux
install java for all users in linux
java modular programming example
how to compile and run java modular program
how to run java in linux
java tutorial
manjaro linux 23 openjdk 21
how to install java in manjaro linux