Prerequisites

In order to explore SAP Commerce Cloud with SAP Commerce Cloud 123, you need to prepare your system by installing the basic prerequisites.

You require the following to use SAP Commerce Cloud 123:

  • Java 17 Software Development Kit
  • Apache Maven
  • Git
  • Chrome web browser

SAP Commerce Cloud 123 uses Selenium for running automated tests as you progress through the tutorials. Selenium requires the Chrome web browser.

Modify the ditto Command (Linux Only)

SAP Commerce Cloud 123 uses the ditto command for some Unix/Mac steps. Because the Linux ditto command does not work the same as for Mac, it is important that you modify the command to match the OSX functionality before beginning SAP Commerce Cloud 123 on Linux. Making this change will greatly simplify your journey through SAP Commerce Cloud 123.

Context

By default, the Mac OSX ditto command creates target directories in the given file path if they do not already exist. The Linux ditto command does not do this, but you can modify the command in your shell profile to add mkdir support.

Procedure

Add the following line to your .bashrc file, or equivalent:
ditto() { directory=$(dirname $2); mkdir -p $directory; cp "$1" "$2"; }

Results

This change replicates the ditto functionality that is used extensively in the tutorials.

Install the Prerequisites

Prepare your system by installing a few essential prerequisites before beginning your journey through SAP Commerce Cloud 123.

Procedure

  1. Check that you have the supported Java Development Kit (JDK) installed with the <JAVA_HOME> variable set.
    1. Enter javac -version in the command-line prompt.
      You should get a response similar to:
      javac 17.0_xxx
  2. Optional: If you do not have Java Development Kit 17 (JDK 17) installed, install it, and define the <JAVA_HOME> variable. (See Install the Java SDK).
    1. Select the JDK you require and follow the installation instructions to install it.
    2. Set the <JAVA_HOME> environment variable to point to the JDK directory, and add it to your path. (for instructions, see https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_tInformation published on non-SAP site).
    3. Enter javac -version in a command-line prompt.
      You should get a response similar to:
      javac 17.0_xxx
  3. Check that you have Apache Maven installed.
    1. Enter mvn --version in the command-line prompt.
      You should get a response similar to:
      Apache Maven 3.x.x ...
  4. Optional: If you do not have Apache Maven installed, install it (see Installing Apache MavenInformation published on non-SAP site).
  5. Check that you have Git installed (see Installing GitInformation published on non-SAP site).
    1. Enter git --version in the command-line prompt.
      You should get a response similar to:
      usage: git version 2.x.x
  6. Optional: If you do not have Git installed, install it.