Mailinglist Archive: opensuse (2040 mails)

< Previous Next >
Re: [opensuse] JAVA_HOME and cron scripts
  • From: Daniel Bornkessel <dbornkessel@xxxxxxx>
  • Date: Mon, 4 Jun 2007 13:41:51 +0200
  • Message-id: <200706041341.51505.dbornkessel@xxxxxxx>
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.
>
> Cheers, Dave

On >= 9.3, execute
source /usr/share/java-utils/java-functions
to set $JAVA_HOME

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

Regards,
Daniel


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

< Previous Next >
Follow Ups
References