Is there a way to change the $JAVA_HOME environment for sudo?

Thanks, 
-Grant

-------------------------------------
Grant Kohler
[EMAIL PROTECTED]
REACHMDConsult, Inc.
http://www.reachmdc.com/
(770) 853-3556


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Timon Reinhard
Sent: Friday, June 22, 2007 9:56 AM
To: [email protected]
Subject: Re: [Red5] sudo red5 problem

Hi Grant,

I guess your $JAVA_HOME environment variable points to the installation 
path of 1.4 (after sudoing)...

How do you start red5? Using red5.sh?

Regards,
Timon



Grant Kohler schrieb:
> All, 
> 
>    I'm using red5 on a Fedora Core 5 box.  I'm trying to run the red5
server
> as a regular user and not root, however that presents the problem that you
> can't run rtmpt over port 80 unless you have root privileges.  I decided
to
> give sudo privileges for the user I want to run red5 as to run apache ant
> and I've successfully done that.  However, every time I run the sudo ant
> server command as the regular user in the red5 directory, the installed
> version of ant tries to use the default version of java that was installed
> on the linux box which is 1.4 which I know won't work with red5 when you
are
> trying to bind it to a port lower than 1024.  I have a version of java 1.5
> installed on the linux box, and when I run the command java -version as
both
> the regular user and root user it tells me the version it's using is the
> java 1.5, however for some reason the sudo command I'm running keeps
trying
> to use the 1.4 version of java.  Is there a separate classpath to set when
> using sudo?  I really have no idea what else to try, any suggestions would
> be much appreciated!
> 
>  
> 
> Thanks, 
> 
> -Grant
> 
>  
> 
> -------------------------------------
> 
> Grant Kohler
> 
> [EMAIL PROTECTED]
> 
> REACHMDConsult, Inc.
> 
> http://www.reachmdc.com/
> 
> (770) 853-3556
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to