Help with jar

I was working with a Jar file ( postgresql-8.0-315.jdbc3.jar ). When i launched my application from the ECLIPSE it worked fine, but when i try to open it from cmd java -cp <app-dir> <package.classname> i get a ClassNotFound Exception when i try:

Class.forName("org.postgresql.Driver");

how can i fix this?.

Thnx.

[349 byte] By [Fer8484a] at [2007-10-2 22:24:56]
# 1
make sure you included your DB driver/DB jar file in your classpath everytime you execute your apps on a command line..
angeles1016a at 2007-7-14 1:42:20 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks, that worked fine. i was only including the jar directory, but not the jar itself.
Fer8484a at 2007-7-14 1:42:20 > top of Java-index,Java Essentials,Java Programming...