Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: can't find in classpath, but only when running from the jar file Date: Mon, 15 Oct 2012 17:04:06 +0100 Lines: 13 Message-ID: References: <4a7b7c26-806b-4a3d-8fed-f56e35ba8d76@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net xEwIfLdWM0ez6FWSh9tupAVmPHfdycyewdEsSfvj7knJt9j/ylBgQclnxnFXdav+AK Cancel-Lock: sha1:si6rCLipJc7wFsoiIKDII3EvyTM= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:19359 On 15/10/12 16:51, Jeff Higgins wrote: > or a classpath option > java -jar -cp pathtomyaxis2clientjar PartnerAPI-test-client.jar > That won't work. The -cp option is ignored with -jar. If you use -jar you can only specify a classpath in the Class-Path: directive in the manifest, as explained in your previous posts. -- Nigel Wade