Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!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 20:49:24 +0000 (UTC) Organization: UK Free Software Network Lines: 31 Message-ID: References: <5e66740e-0d85-44b9-806d-d0056b27e928@googlegroups.com> <2dad5750-78a5-444a-812f-fdadb4d58278@googlegroups.com> 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 1356900564 9472 84.45.235.129 (30 Dec 2012 20:49:24 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sun, 30 Dec 2012 20:49:24 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:20829 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 |