Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: a java classpath question Date: Sun, 30 Dec 2012 22:11:09 +0000 (UTC) Organization: UK Free Software Network Lines: 47 Message-ID: References: <5e66740e-0d85-44b9-806d-d0056b27e928@googlegroups.com> <2dad5750-78a5-444a-812f-fdadb4d58278@googlegroups.com> <50e0adbe$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1356905469 10940 84.45.235.129 (30 Dec 2012 22:11:09 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sun, 30 Dec 2012 22:11:09 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:20831 On Sun, 30 Dec 2012 16:10:23 -0500, Arne Vajhøj wrote: > On 12/30/2012 3:49 PM, Martin Gregorie wrote: >> 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? > > Do you read Dilbert? > > :-) > Not usually, though I know the strip - of course. BOFH is more my style. However, I am genuinely puzzled why nobody seems to be authorized to make what seems to be a simple change. For all I know the problem *is* a PHB. There are far too many of them around thanks to the Peter Principle and MBA schools. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |