Running the Example Code

The next step is to try running one of the example database programs that accompany the release. Go to the demo directory with this command:

cd c:\mckoi1.0.2\demo\simple

Then run the sample database application that comes with the release. Use this command (assuming you have put the mckoi jar file in the jre\lib\ext directory):

java  SimpleApplicationDemo

If all is well, you will see some sample output similar to this, assuring you that the database libraries have been properly installed.

Rows in 'Person' table: 12Average age of people:  30.0833333333All people that live in Africa:  Grayham Downer  Judith Brown  Timothy French   ...

If you do not see output like this, you will need to debug the problem based on ...

Get Just Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.