Run HelloWorld Web Application Sample

p>This HelloWorld sample demonstrates the basic structure of a Java Card 3 platform application that developers can use to develop, deploy, create, execute, delete, and unload a stand-alone module. It is a minimal application utilizing the simplest source code and meta-files. The HelloWorld sample contains one web application that demonstrates using a basic web form to collect and display information provided by the user.

Running the HelloWorld sample consists of using the IDE to open the HelloWorld project, starting the HelloWorld application, entering a name in a web page, clicking the Say Hello button on the page, and then displaying a greeting.

Before You Begin

Before performing the following procedure, either download and install the Java Card 3 Development Kit, Connected Edition on your development system or download the sample from the Kenai Java Card 3 repository. See Getting Additional Web Application Samples for instructions required to download samples from the Kenai Java Card 3 repository.


Note - Refer to the Development Kit documentation for additional details about working with the Development Kit.


  1. Click File > Open Project in the main window.
  2. Go to the \samples\web folder and open the HelloWorld project.
  3. Click the run button in the main window.

    The IDE compiles, builds, and runs the sample. When the sample runs the IDE launches the default browser and displays the Hello World page.

  4. Enter a name in the Enter Name field and click the Say Hello button.

    The browser displays a greeting.

  5. Close the browser to stop the application.