OpenJDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME

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



Category:
Tutorial
Duration: 6:24
2 views
0


In this video we are going to see how to install OpenJDK 17 on Rocky Linux 9 for all users with JAVA_HOME Environment Variable

In this Example:

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

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

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

Example commands:

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

javac --module UrlValidatorClientModule -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 UrlValidatorClientModule/org.javafrm.UrlValidatorClient

#openjdk #java #jdkinstallation #installjdk #installjava #javajdk #javalinux #javahome #rockylinux9 #jdk17




Other Videos By java frm


2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert extends keyword - ex + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert class keyword - cl + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert Exception keyword - Ex + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert Enumeration - En + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert break keyword - br + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert abstract keyword - ab + Tab Key
2024-03-30Apache NetBeans IDE 21 Tutorial - Short Cut to insert continue keyword - cn + Tab Key
2024-03-30Eclipse Temurin OpenJDK 21 installation on Rocky Linux 9 | How to install Java 21 on Linux
2024-03-30Eclipse Temurin OpenJDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux
2024-03-30OpenJDK 21 installation on Rocky Linux 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-30OpenJDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME
2024-03-30Zulu OpenJDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME
2024-03-29Zulu OpenJDK 21 installation on Rocky Linux 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-29Oracle JDK 21 installation on Rocky Linux 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-29Oracle JDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME
2024-03-29Liberica JDK 21 installation on Rocky Linux 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-29Liberica JDK 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME
2024-03-29Amazon Corretto 21 installation on Rocky Linux 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-29Amazon Corretto 17 installation on Rocky Linux 9 | How to install Java 17 on Linux with JAVA_HOME
2024-03-28Zulu OpenJDK 21 installation on RHEL 9 | How to install Java 21 on Linux with JAVA_HOME
2024-03-28Zulu OpenJDK 17 installation on RHEL 9 | How to install Java 17 on Linux with JAVA_HOME



Tags:
how to install openjdk 17 on rocky linux 9
how to set java_home on rocky linux 9
java_home environment variable in rocky linux
how to install java on linux
java_home rocky linux 9
java installation on rocky linux 9
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
rocky linux 9 openjdk 17
how to install java in rocky linux