SAP HANA Academy’s Jamie Wiseman shows how to create a Hello World application in the SAP HANA Cloud Platform. Jamie is using a free developer license for SAP HANA Cloud Platform. Please follow these instructions to get your own free license.
First Jamie shows how to create a dynamic web project. Jamie clicks on the Open Development option in SAP HANA Studio and then chooses File, then New, then other, and then searches for dynamic web project. After selecting the dynamic web project option he clicks next. Jamie names his project Hello World and then clicks finish and then chooses no in the popup window so he doesn’t open an associative perspective.
Next in the project tab, Jamie right clicks on Hello World and chooses new and scrolls down to select Servlet. Jamie enters hello for the Java package and HelloWorldServlet in the Class name before clicking next. Then Jamie highlights the URL mapping, clicks edit and enters a forward slash (/) in the package line so the servlet is mapped as the application welcome page, before finally clicking finish. Once the servlet has loaded into the Java editor Jamie adds a single line of code, response.getWriter().println(“Hello World!”); to the doGet line.
After saving, Jamie deploys the application to the local server as a test. Jamie right clicks on the open Java console and chooses run as and then run on server. After highlighting the SAP HANA Cloud Platform Local Runtime option, Jamie clicks finish to run the Hello World application.
Next, Jamie right clicks on the open Java console and chooses run as and run as server. Jamie first selects the Manually define a new server option and then highlights the SAP HANA Cloud Platform before clicking next. Jamie enters helloworld as the Application name and also inputs his account information before clicking finish to complete the deployment of the servlet on the SAP HANA Cloud Platform. Finally, Jamie verifies the application works by pasting the generated URL into a browser.
Jamie’s tutorial video walks through how to set up a SAP HANA Cloud Platform environment and how to deploy the Hello World application to the platform.
View other tutorials on SAP HANA Cloud Platform at the SAP HANA Academy.
SAP HANA Academy – over 500 free tutorial technical videos on using SAP HANA.
SAP HANA Academy