Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20829
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: a java classpath question |
| Date | 2012-12-30 20:49 +0000 |
| Organization | UK Free Software Network |
| Message-ID | <kbq9ck$980$1@localhost.localdomain> (permalink) |
| References | <5e66740e-0d85-44b9-806d-d0056b27e928@googlegroups.com> <2dad5750-78a5-444a-812f-fdadb4d58278@googlegroups.com> |
On Sun, 30 Dec 2012 11:50:48 -0800, John L. wrote: > On Friday, December 28, 2012 12:07:39 PM UTC-5, zyng wrote: >> Hi: My Java program is started by using somebody's shell script. Inside >> his script: java -classpath his_lib/'*' Main However, I also wish to >> set Java's classpath for my code to work and I am not allowed to change >> his script.(He: actually is a company. My program is running inside >> this company's main frame). So when JVM starts, the true classpath is >> my_lib/'*';his_lib/'*'. Is that possible to do? Thank you. > > At the risk of stating the obvious, perhaps set the %CLASSPATH% > environment variable (or its Unix equivalent) prior to invoking your > colleague's script. At the brisk of stating another obvious point, whats wrong with this summary of the situation? 1) the owner of the computer wants your program to be run on it. 2) an existing script must be changed for your program to run 3) the computer's sysadmins won't let anybody else change scripts on production systems. (a fairly common situation). However this leaves the obvious outstanding question: why won't the sysadmins, i.e. 'the company', make the changes needed for your program to run? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 09:07 -0800
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:05 -0500
Re: a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 10:44 -0800
Re: a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 10:48 -0800
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:51 -0500
Re: a java classpath question Lew <lewbloch@gmail.com> - 2012-12-28 13:16 -0800
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:48 -0500
Re: a java classpath question Roedy Green <see_website@mindprod.com.invalid> - 2012-12-29 09:52 -0800
Re: a java classpath question Roedy Green <see_website@mindprod.com.invalid> - 2012-12-30 07:53 -0800
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 15:40 -0500
Re: a java classpath question "John L." <johnlarew@sbcglobal.net> - 2012-12-30 11:50 -0800
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 15:35 -0500
Re: a java classpath question Martin Gregorie <martin@address-in-sig.invalid> - 2012-12-30 20:49 +0000
Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 16:10 -0500
Re: a java classpath question Martin Gregorie <martin@address-in-sig.invalid> - 2012-12-30 22:11 +0000
csiph-web