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?
Arne