Mailinglist Archive: opensuse (2040 mails)

< Previous Next >
Re: [opensuse] JAVA_HOME and cron scripts
  • From: Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 04 Jun 2007 14:04:00 +0100
  • Message-id: <46640DC0.8080901@xxxxxxxxxxxxxxxxx>
Daniel Bornkessel wrote:
> On Monday 04 June 2007 12:43:09 Dave Howorth wrote:
>> I'm trying to run a Java program from a cron job and have discovered
>> that JAVA_HOME and friends aren't set. What's the best way to set them
>> for cron jobs?
>>
>> I'm presently on 9.3 but will be moving to 10.2 shortly.
> 
> On >= 9.3, execute
> source /usr/share/java-utils/java-functions
> to set $JAVA_HOME

Thanks, I'll try that. Of course you can't source it in the crontab and
adding it to every cron job is a royal pain :(  I was hoping there was a
nicer idiom.

> prior versions had a script called 
> setJava <options>
> to set this variable.

On my 9.2 systems setJava just prints a message saying that it's been
replaced. The systems have /usr/share/java-utils/java-functions.

Cheers, Dave
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >