You need to provide a file which contains the information for how to connect to the database. An example of this file is provided in the zip-package of this program. By default, the programm look into the current directory for a file named database.properties. If you use another name, you need to provide the path to the file with the -dp argument. You also need to put your JDBC driver in the classpath (mysql-connector-java-5.1.7-bin.jar for mysql, for example) So the easiest way to execute the programm is to put execution command in a batch file (*.bat or *.sh) and then execute the batch. Here is an example of how to execute the programm, assuming that "smclient-db-cleaner.jar" and "database.properties" are in the current directory: java -cp C:\Users\sberthouzoz\Documents\jboss-4.2.3.GA\server\default\lib\mysql-connector-java-5.1.17-bin.jar;smclient-db-cleaner.jar ch.admin.smclient.service.App In this example, we provide the path to the database properties file: java -cp C:\Users\sberthouzoz\Documents\jboss-4.2.3.GA\server\default\lib\mysql-connector-java-5.1.17-bin.jar;smclient-db-cleaner.jar ch.admin.smclient.service.App -ds C:\program\datasource.properties If you want to use this program inside a batch, you can use the option -c x where x is the number of the command you want to perform. Execute the program normally to see the available command. With this option, the program will execute the command and the exit directly