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,
likeas 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