In order to populate the database using "ant create-tables" command, you need to follow the steps below:
By default, sun's application server is installed in C:\Sun\AppServer. If using a non-installation package, the j2ee server home directory could be C:\Sun\SDK.
In the tutorial, there is a build.properties.sample file in the javaeetutorial5/examples/bp-project.
1. Copy that file and rename it to build.properties.
2. In the build.properties, edit the javaee.home, javaee.tutorial.home to match your environment.
3. Uncomment the AS_ADMIN_PASSWORD and specify your application server admin password.