Course Overview

Clarity Environment Prerequisites

Throughout this course, you'll use a local Liferay environment to implement Clarity's enterprise website. Before moving forward, complete these prerequisites to prepare your system for the following exercises:

  • Git
  • Java JDK 21
  • Blade CLI

Git

To verify Git is installed and ready for use, open a terminal window and run this command:

git version

If you're on Windows, use Command Prompt, PowerShell, or BASH to execute terminal commands.

This returns the version of your git installation. For example,

git version 2.45.2

If the Git command is not found, please see official documentation for how to install Git for your OS (macOS|Windows|Linux/Unix).

Java JDK 21

This course requires Java JDK 21. You can find the appropriate OpenJDK distribution for your OS here. You can download the JDK as a ZIP (Windows) or TAR.GZ (Linux/Mac) package. To install, extract the file in a folder of your choice, then set the JAVA_HOME environment variable to that folder. Alternatively, you can install Java using native installers according to your OS (macOS|Windows|Linux).

Once you've installed Java JDK 21, open a terminal window and run this command to ensure it is ready for use:

java -version

The JDK version appears. For example,

openjdk 21.0.5 2024-10-15 LTS
OpenJDK Runtime Environment Zulu21.38+21-CA (build 21.0.5+11-LTS)
OpenJDK 64-Bit Server VM Zulu21.38+21-CA (build 21.0.5+11-LTS, mixed mode, sharing)

If it does not, you may need to perform additional troubleshooting steps that are beyond the scope of this course. Please see the relevant Java JDK installation documentation for your system.

Blade CLI

Liferay provides Blade CLI to simplify many development tasks. You can use it to create new workspaces, get server bundles, spin up Liferay instances, and more. For this course, Blade is strongly recommended. Before proceeding, see Blade CLI for installation instructions.

Once installed, run this command to verify Blade is ready to use:

blade version

It should return the CLI's version:

blade version 7.0.3.202503050337

If the output indicates there is a newer version, run this command to update it:

blade update

Great! With the prerequisites in place, let’s set up your Liferay environment.

Conclusion

Great! With the prerequisites in place, let's explore Liferay Workspaces and set up your Clarity environment.

  • Git

  • Java JDK 21

  • Blade CLI

  • Conclusion

Loading Knowledge

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy