From: Laurenz Albe <laurenz.albe@cybertec.at>
To: CR20 <mez283em23e2ze2@yahoo.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Ver. 12.1 successfully installed on Win 10 but having trouble with jdbc jar
Date: Mon, 20 Jan 2020 10:13:36 +0100
Message-ID: <45d8549f99c0bad714a7fa8fbac3a002bcbcdbd0.camel@cybertec.at> (raw)
In-Reply-To: <7d2f92c9-a779-832b-849e-a38f929375d6@yahoo.com>
References: <7d2f92c9-a779-832b-849e-a38f929375d6.ref@yahoo.com>
<7d2f92c9-a779-832b-849e-a38f929375d6@yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, mez283em23e2ze2@yahoo.com, pgsql-admin@lists.postgresql.org
Subject: Re: Ver. 12.1 successfully installed on Win 10 but having trouble with jdbc jar
In-Reply-To: <45d8549f99c0bad714a7fa8fbac3a002bcbcdbd0.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox