How to install Amazon Corretto 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable

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



Category:
Guide
Duration: 9:11
0 views
0


In this video we are going to see How to install Amazon Corretto 17 in Ubuntu 22.04 LTS 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 BinarySearch and BinarySearchClient Modules. Each Module must contain module-info.java which is mandatory.
classes --- will store all the compiled class files of Java Modules.

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

Example Java Commands:

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

javac --module BinarySearchClientModule -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 BinarySearchClientModule/org.javafrm.BinarySearchClient


#corretto #java #jdkinstallation #installjdk #installjava #javainstallation #javajdk #javalinux #javahome #ubuntu #jdk17




Other Videos By java frm


2024-01-08How to install Azul's Zulu OpenJDK 17 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
2024-01-08How to install Eclipse Temurin OpenJDK 21 in Ubuntu 22.04 LTS with JAVA_HOME Environment Variable
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



Tags:
how to install amazon corretto 17 on ubuntu
how to install amazon corretto 17 on ubuntu linux
how to set java_home on ubuntu linux
java_home environment variable in ubuntu
how to install java on linux
java_home ubuntu linux
java installation on ubuntu
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 commandline
ubuntu 22.04 amazon corretto 17