Table of Contents Previous Section

Starting WebObjects Applications from the Command Prompt

To start a WebObjects application:

  1. Locate the application executable. If you don't have compiled code and haven't built a custom executable, use the default application executable located in NextLibrary/WebObjects/Executables.
  2. Change directories to the directory in which the application executable is located.
  3. Start the application by invoking the executable as follows:
  4. ApplicationExecutableRelativeApplicationDirectory

    You must provide at least one argument to the executable: the application directory relative to <DocumentRoot>/WebObjects. WebObjects applications use this argument to find application resources such as components and images. For example, the HelloWorld application directory is located in <DocumentRoot>/WebObjects/Examples/HelloWorld. Therefore, the relative application directory is Examples/HelloWorld, and the following command starts HelloWorld:

    DefaultApp Examples/HelloWorld

    You start a custom executable the same way. For example, the following command starts an application named Registration whose application directory is <DocumentRoot>/WebObjects/Promos/Registration:

    Registration Promos/Registration

Note: Additional configuration is required if the WebObjects application is not installed on the HTTP server. See the "Serving WebObjects" document for additional instructions.

 

Table of Contents Next Section