In this video we are going to see How to install Azul's Zulu OpenJDK 17 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 FloydTriangle and FloydTriangleClient Modules. Each Module must contain module-info.java which is mandatory.
classes --- will store all the compiled class files of Java Modules.
Here FloydTriangle Module contains module-info.java which exports the com.javafrm package, so that other modules can access the package and com.javafrm package contains FloydTriangle.java.
Class name and Method should be public, then only you can access this class and required methods from other modules.
Next FloydTriangleClient Module contains contains module-info.java which requires (calls) FloydTriangle Module.
It contains org.javafrm package which contains FloydTriangleClient.java (Main class) and access the class and methods from FloydTriangle Module.
Example Java Commands:
javac --module FloydTriangleModule -d /opt/Java-Module-Programs/Modules/classes --module-source-path /opt/Java-Module-Programs/Modules/src
javac --module FloydTriangleClientModule -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 FloydTriangleClientModule/org.javafrm.FloydTriangleClient
#zulujdk #java #jdkinstallation #installjdk #installjava #javainstallation #javajdk #javalinux #javahome #manjarolinux #jdk17
On this page of the site you can watch the video online How to install Azul's Zulu OpenJDK 17 in Manjaro Linux 23 with JAVA_HOME Environment Variable with a duration of hours minute second in good quality, which was uploaded by the user java frm 12 January 2024, share the link with friends and acquaintances, this video has already been watched 66 times on youtube and it was liked by 0 viewers. Enjoy your viewing!