NaturalONE Version 8.3.7
 —  Sample Applications  —

Hello World Application

This document covers the following topics:


About the Sample Application

The Hello World application is the preferred starting point for using NaturalONE. This is a simple sample which demonstrates a Natural project which implements a Hello World application by using Natural for Ajax.

Top of page

Installing the Sample Application

Install the sample application by clicking Hello World application on the welcome page. A new project named "NaturalONE Hello World Sample Application" will then be shown in the Navigator view. See also Installing the Sample Applications.

Top of page

Starting the Sample Application

You start your first Natural application by executing the program HELLO-P.NSP in the SAMPL4ONE library.

Start of instruction setTo start the sample application

  1. In the Navigator view, expand the project NaturalONE Hello World Sample Application.

    Note:
    By default, the environment to which a Natural project pertains is shown next to the project name. For the sample applications, the environment name is "natural-runtime". This is the local Natural runtime which enables you to execute your applications without having to use a remote development environment. The number in parentheses which is also shown next to the project name indicates the number of Natural libraries in this project. This is part of the so-called label decoration.

    The following screenshot shows the project structure.

    Navigator

    There are two folders:

  2. Select the program HELLO-P.NSP, invoke the context menu and choose NaturalONE > Execute.

    The output is now shown.

    graphics/hello-p.png

  3. Enter your name in the Input Area and choose the Say Hello button.

    Your name is now shown in the Output Area.

Top of page