Running StaticSecureWebHosting Sample Web Application

The StaticSecureWebHosting sample demonstrates secure hosting with user access on a static port. The sample contains one web application that accesses a secure website hosted on a static port defined by the sample’s manifest.mf file. Each time the application is run, access to the web site is made through this port.

Running the StaticSecureWebHosting sample consists of using the IDE to open the StaticSecureWebHosting project, starting the application, checking the website’s security certificate, displaying a web page, and entering information on that page.

Before You Begin

Before performing the following procedure, the Java Card 3 Development Kit, Connected Editon must be downloaded and installed on your development system.

The StaticSecureWebHosting project is located under the JC_CONNECTED_HOME\samples\web folder.


Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.


  1. Click File > Open Project in the main window.
  2. Go to the JC_CONNECTED_HOME\samples\web folder and open the StaticSecureWebHosting 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 Secure hosting static port entry page.


    Note - If the browser displays a warning that the security certificate is not issued by a trusted certificate authority, disregard it and continue to the web site. The security certificate for this sample is used for demonstration purposes only and cannot be used for developing deployable samples.If you are unable to continue to the web page, perform Accepting Untrusted Certificates.


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

    The browser displays the static port web page.

  5. Close the browser to stop the application.