Prepare the Infrastructure
You need to have Maven and JDK 8 installed. In case you do not have them, conduct the following steps.
Windows (Windows 7+ / Windows Server 2003+)
1. Install Chocolatey (a package manager for Windows)
@powershell -NoProfile -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))” && SET “PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin”
2. Install Java Development Kit, if not yet availableInstall a specific JDK (e.g., JDK 8)
choco install jdk8
3. Install Maven
choco install maven
1. Install Homebrew (Mac Packetmanager to help with the remaining installation)
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2. Install Java Development Kit, if not yet available
brew cask install java
Tip: Install a specific JDK if you like with (e.g., JDK 8)
brew cask install caskroom/versions/java8
3. Install Maven
brew install maven
To develop your first “Hello World” application with SAP S/4HANA Cloud SDK, you can just use your command line and a simple text editor. However, for bigger development projects, you can work with the IDE of your choice.
We recommend to use Intellij IDEA or Eclipse. Follow the installation instructions of corresponding tools to prepare your IDE. In case you use Eclipse, make sure to install the maven plugin for Eclipse.
Download and Install SAP S/4HANA Cloud SDK (Beta)
Please note that this entire step will vanish in the future and is only valid with the Beta version that you download from SAP Service Marketplace.
Once you have completed the prerequisites, you need to download the Beta SDK as a Zip from Service Marketplace and install all artifacts to your local repository.
If you have downloaded the zip file, unzip the file to <location> and open a command line interface.
If you type the commands below, the SDK artifacts will be installed to your local Maven repository so that you can work with them as they would come from a central Maven repository.
Troubleshooting with Corporate Proxies
Corporate proxies cause a lot of pain for developers. The above mentioned commands may fail, if you sit behind a corporate proxy. If you cannot escape the proxy, you need to tell Maven where your proxy is located.
To do this, you need to cd to your ~/.m2 directory (e.g., Windows: C:/Users/<username>/.m2) and create a file called settings.xml. Then you paste the following content.
You can verify the correctness of your proxy settings when you repeat the commands or run mvn clean install.
After finishing these steps, you are ready to start the development of your SAP Cloud Platform applications with SAP S/4HANA Cloud SDK. If you are interested to learn more, stay tuned for the upcoming development topics that we will cover in the following posts: available project templates in the SDK, setting up the communication with SAP S/4HANA, deployment on Cloud Foundry, etc.