Re: Ver. 12.1 successfully installed on Win 10 but having trouble with jdbc jar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2020-01-19 at 19:24 -0500, CR20 wrote:
> ...which compiled successfully but when I go to run it, with postgresql-42.2.9.jar stored in path C:\PostgreSQL\libs, like as follows:
> 
> java -cp C:\PostgreSQL\libs . CreateTable
> 
> ...the command line returns:
> 
> Error: Could not find or load main class .
> 
> Some of this is my limited knowledge of Java.

Indeed.  You have to treat the JAR file as if it were a directory,
that is, put the file itself on the class path:

  java -cp C:\PostgreSQL\libs\postgresql-42.2.9.jar;. CreateTable

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux