Running compiled applications exercises more features of the WebObjects framework and development environment. Before attempting to troubleshoot a problem with running a compiled application, make sure you can run a simple scripted application.
On the HP-UX platform, examples are not installed built. You must build them yourself before you can run them. To compile an example, cd to the example's project directory and type make . For example:
> cd /Apple/Developer.Examples/WebObjects/ObjectiveC/HelloWorldCompiled> make
The Movies application must be compiled before you can run it. In addition, you must create the Movies database (scripts are provided) and install the database model file that is compatible with your database server as described in " Setting Up the Sample Databases ."
Check the Movies directory for an directory named Movies.woa . This is the WebObjects application wrapper. Check the wrapper for an executable file. If the wrapper or the executable doesn't exist, build the Movies application.
On Solaris and HP-UX, you need to build Movies with the correct client libraries and adaptor. Before you build, add the appropriate adaptor framework to the FRAMEWORKS makefile variable. Then uncomment the following line in the Makefile.preamble to link the appropriate client libraries:
include $(MAKEFILEDIR)/pdo-eoadaptor-linking.make
If Movies compiles and runs but can't access data about the various movies, it's probably because the application can't communicate with the database server.
Check that the client libraries for your database server are correctly installed on your machine. If so, you can, for example, use the tools supplied with the database server (isql for Sybase, sqlplus for Oracle, and dbaccess for Informix) to test that you can connect to the server and execute simple SQL commands.
The model file should be in the Resources directory under the application's .woa directory. Taking the Movies application for example, the directory structure would look like this:
Movies.woa/
Movies (the executable file)
Resources/Movies.eomodeld (the model file)