How to include the Jar file in the Java classpath?

Поиск
Список
Период
Сортировка
Искать

How to include the Jar file in the Java classpath?

От:
"hotmailChao" <chao_deng@hotmail.com>
Дата:
Hi,

I have aPostgreSQL's JDBC driver as /usr/share/postgresql/java/postgresql.jar.

But when I run the following command :
java -Djdbc.drivers=org.postgresql.Driver example.Imageview

An error is given as: java.lang.ClassNotFoundException: org.postgresql.Driver

Anybody could help me?

Thanks

Chao

Re: How to include the Jar file in the Java classpath?

От:
Daniel Serodio <daniel@checkforte.com.br>
Дата:
On Wed, 2003-01-29 at 13:53, hotmailChao wrote:
> Hi,
> 
> I have aPostgreSQL's JDBC driver as /usr/share/postgresql/java/postgresql.jar.
> 
> But when I run the following command :
> java -Djdbc.drivers=org.postgresql.Driver example.Imageview

Try java -Djdbc.drivers=org.postgresql.Driver -classpath
/usr/share/postgresql/java/postgresql.jar:. example.Imageview

> An error is given as: java.lang.ClassNotFoundException: org.postgresql.Driver
> 
> Anybody could help me?
> 
> Thanks
> 
> Chao
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
-- 
Daniel Serodio 
CheckForte

FAQ