Home > Articles > Programming > Java

  • Print
  • + Share This
(c)Running the Code

Running the Code

As mentioned earlier, the easiest way to run the code is to open three DOS consoles in the directory containing the Ant build file (called build.xml). To view the Ant build targets, type:

ant –p

and you should see something like Listing 6:

Listing 6—Viewing the Ant Targets

ant -p
Buildfile: build.xml

Main targets:

 clean         Clean the build directory
 dbmanager     Start HSQL DB manager
 run           Build and run HelloWorld
 schemaexport  Exports a generated schema to DB and file
 startdb       Run HSQL database server with clean DB
Default target: compile

My previous article described in detail how to do the following:

  • Start the database manager.
  • Export the schema to the database.
  • Run the client program.

In the interests of brevity, I won’t repeat the content from that article.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.