Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itT81-0006YR-5U for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jan 2020 09:13:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itT7y-0003B4-Ep for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jan 2020 09:13:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itT7x-00039b-Ur for pgsql-admin@lists.postgresql.org; Mon, 20 Jan 2020 09:13:46 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1itT7s-00079p-9r for pgsql-admin@lists.postgresql.org; Mon, 20 Jan 2020 09:13:44 +0000 Received: by mail-wm1-x32b.google.com with SMTP id p17so13887703wma.1 for ; Mon, 20 Jan 2020 01:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=gprIzDhjcw3+6tq/ywhP2PcZq7RpwPGi9Kg/Dj9oGTI=; b=IppfW7iqfpiICumUFICQXKQbfyAB2v9VyZqNm6gBgJTSSpJk1FQywovpS9ME/ilfxp rY5OUTLJQkUQJFFVgEXgSlg+q690DiAIB6vT8qUyJp3P7qUXVYJ15mvpkBSmNtLWb89e vzMQiYZaMUPQ/X7up22DFqBW6uhXlOr2Cxol4YnBdLDNLT/Pku7rGJ0Fgip75sdJknYw McU1u/hPHhwjFK8n3XwRJQf9c+yVtQhe4IWrfa1cqJ3f7IJwOHTpTxmbIH6yDF5iNMRk vFSvgHvP4FmiugulL03EeTKwAuFImJ9HzqyGEDRG1Pi5XNr1eKFpgM9/9wrKhSN+vMm1 ZF+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gprIzDhjcw3+6tq/ywhP2PcZq7RpwPGi9Kg/Dj9oGTI=; b=f9S7ZCGBqgo+PlFgZx0U1dhvRAw6NsjzveNsXtOIpTRzQ1P27Loczabu6qkhEavJWn S2ajxKZCZQNV86dfFTj9AQMZgurlc6+A+4jmC8medGwYvgwmWeQJ/tvwTQDwI0KpcCzU kDrvvsc2O+LYAcWMF3MCVouqXeId+rvsOrYEcFRxOh7AFth1MdheLfs1pfN15vd7yqqQ GCkf9Yih1jaGROnCLnjXCs/PxaKA2GUBdY3cXEmuCgFXhpERainnI+CzU9YriGTMfJ+Y yewgVJWXGbfQUPEC6BQLbAwenJweLL9vNhmKhOl2eSj3KAmsmzT9FhQAkV6PkMQvbpR9 g5uw== X-Gm-Message-State: APjAAAWC8EoeFJ/olT5uETAbt+Cfe5VNQffk5Gx3VVYYA5jrR4tttOQ2 slnySY60JT5nwE6yp45G2mnd8g== X-Google-Smtp-Source: APXvYqx4eEILqrR4QUdDD9xlr2jjtcJ9A95ESzgDjzQ5pd75P5M2R1K3x0lVQQwJj+/UP8YgTHoSjw== X-Received: by 2002:a7b:cbcc:: with SMTP id n12mr17938884wmi.186.1579511617981; Mon, 20 Jan 2020 01:13:37 -0800 (PST) Received: from localhost.localdomain ([212.186.219.234]) by smtp.gmail.com with ESMTPSA id p18sm22295070wmb.8.2020.01.20.01.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 01:13:37 -0800 (PST) Message-ID: <45d8549f99c0bad714a7fa8fbac3a002bcbcdbd0.camel@cybertec.at> Subject: Re: Ver. 12.1 successfully installed on Win 10 but having trouble with jdbc jar From: Laurenz Albe To: CR20 , pgsql-admin@lists.postgresql.org Date: Mon, 20 Jan 2020 10:13:36 +0100 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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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