Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19364
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: can't find in classpath, but only when running from the jar file |
| Date | 2012-10-15 13:00 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <k5hf33$9fd$1@dont-email.me> (permalink) |
| References | <4a7b7c26-806b-4a3d-8fed-f56e35ba8d76@googlegroups.com> <k5h9b5$2sa$1@dont-email.me> <k5hb21$ee6$1@dont-email.me> |
On 10/15/2012 11:51 AM, Jeff Higgins wrote: > On 10/15/2012 11:22 AM, Jeff Higgins wrote: >> On 10/15/2012 10:56 AM, Stryder wrote: >>> but when I try to run the jar, with the environment exactly as it was >>> when I ran the class separately, using this command... >>> >>> java -jar PartnerAPI-test-client.jar > > or a classpath option > java -jar -cp pathtomyaxis2clientjar PartnerAPI-test-client.jar > I've supplied misinformation here. Quoting from the java - The Java Application Launcher manual <http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/java.html#options> -jar [snip] "When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored. " [snip] Thanks to Nigel and Lew for catching this.:)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
can't find in classpath, but only when running from the jar file Stryder <stryder100@gmail.com> - 2012-10-15 07:56 -0700
Re: can't find in classpath, but only when running from the jar file Jeff Higgins <jeff@invalid.invalid> - 2012-10-15 11:22 -0400
Re: can't find in classpath, but only when running from the jar file Jeff Higgins <jeff@invalid.invalid> - 2012-10-15 11:31 -0400
Re: can't find in classpath, but only when running from the jar file Jeff Higgins <jeff@invalid.invalid> - 2012-10-15 11:51 -0400
Re: can't find in classpath, but only when running from the jar file Nigel Wade <nmw@ion.le.ac.uk> - 2012-10-15 17:04 +0100
Re: can't find in classpath, but only when running from the jar file Lew <lewbloch@gmail.com> - 2012-10-15 09:16 -0700
Re: can't find in classpath, but only when running from the jar file Jeff Higgins <jeff@invalid.invalid> - 2012-10-15 13:00 -0400
Re: can't find in classpath, but only when running from the jar file Roedy Green <see_website@mindprod.com.invalid> - 2012-10-15 19:43 -0700
Re: can't find in classpath, but only when running from the jar file Arne Vajhoej <arne@vajhoej.dk> - 2012-10-17 11:52 -0400
csiph-web