Airport Demo - Eclipse

Airport Demo - Eclipse

This demo is designed for Visual COBOL for Eclipse and shows a Java Web application with a JVM COBOL back-end that runs in Apache Tomcat.

Instructions:

  1. Download a free copy of Visual COBOL for Eclipse
  2. Watch the video to see how it's done
  3. Follow the step-by-step guide to build your own Airport Project
  4. To import these demo files into Eclipse:
    1. In the IDE, click File > Import.
    2. In the Import dialog, expand General and click Existing Projects into Workspace.
    3. Click Next.
    4. On the Import Projects page of the Import dialog, click Browse next to Select root directory.
    5. Navigate to and select the sample folder and click OK. This loads the available project or projects into the Projects pane.
    6. Ensure the required projects are selected.
    7. Check Copy projects into workspace and click Finish.
    8. This imports the demonstration projects in Eclipse and displays them in the COBOL Explorer view.
  5. To run the demonstration
    1. Install Apache Tomcat and configure Apache Tomcat:
      1. Navigate to http://tomcat.apache.org/download-70.cgi
      2. Navigate to the Binary Distributions section.
      3. Under Core select a distribution that is suitable for your machine and download the .zip or the .tar.gz archive.
      4. Extract the contents of the archive to a folder on your machine.
    2. To run this demonstration in Eclipse:
      1. Display the Servers view, click Window > Show View > Other.
      2. Expand Server, click Servers and then click OK.
      3. In the Servers view, click the new server wizard link.
      4. Expand Apache, click Tomcat v7.0 Server and click Next.
      5. Set Tomcat installation directory to the root folder where you extracted the Apache Tomcat distribution and click Next.
      6. Select AirportWebDemo in the list of the projects in the Available pane.
      7. Click Add and then click Finish. This adds the project to the Tomcat server. You now need to run the demonstration on that server.
      8. In COBOL Explorer, right-click the AirportWebDemo project and click Run As > Run on Server.
      9. Click Tomcat v7.0 Server under localhost in list of existing servers, then click Finish. This open the default application page in a web browser
      10. You may receive some Windows Security Alert messages - click Allow access in all of them to enable the demonstration to run. The Welcome page of the application is displayed within Eclipse.
      11. Click Demo. This opens a Web form where you can specify the airport codes of two airports.
      12. Enter two airport codes and click Submit. This shows the distance between the two airports and also shows the locations of the airport on the world map.
      13. To stop the application you need to stop the server - in the Servers view, right-click Tomcat v7.0 Server and click Stop.
      14. You can also access the demonstration application on a mobile device as follows: Start a command prompt on your machine and enter: ipconfig. Take a note of the IP address that is listed under the IPv4 Address. Start a browser on your mobile device. Load the following address in the browser: %IP Address%:8080/AirportWebDemo. 

For more information visit: www.microfocus.com/mobile 

Attachments

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2015-08-06 08:26
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.