The Ubuntu way of doing this would be: Add the following line with the correct path to /etc/environment export JAVA_HOME=/dir/to/java/home
The call "sudo visudo", and add the following line to the /etc/sudoers file: Defaults env_keep+=JAVA_HOME Close the shell, and open a new shell window. If you do "sudo env", you'll see a list of environment variables set for "root". And you should see an entry for JAVA_HOME, e.g. ... JAVA_HOME=/dir/to/java/home ... That sets the JAVA_HOME variable for all root commands. - Raju On Mon, Dec 27, 2010 at 12:43 PM, Founder <[email protected]> wrote: > The issue is related to starting the Tomcat Server which needs the JAVA > $home variable set. But sudo normally does not use manually setup variables > unless you use -E along with it to start Tomcat. > > Best, > Duke2010 > > PS: THX 4 ur reply.. > > Phoenix Hawk wrote: > > > > > > On Sat, Dec 25, 2010 at 9:24 PM, Founder <[email protected]> wrote: > > > If your linux distro gives you an headache about why it does not want to > start your Tomcat Server for Open Lazlo even though you have manually > configured the JAVA $home > variable in your bash shell for example? USE sudo -E ./startup.sh to get it > all going for Open Lazlo to be started via Web Browser under > http://localhost:8080 ;) > > Best, > Duke2010 > > PS: Have fun using this RIA set ;) > > > -- > Sent from Ubuntu > > > > Hi Founder, > > > > I am able to run OLS under a normal user account without problems on port > 8080 on CentOS 5.x. > > > > For your case, I believe you are running OLS below port 1024, that's why > you needed the administrative permissions via sudo. :) > > > > I do a ProxyPass and ReverseProxy in Apache to get certain paths mapped > to port 8080 where OLS is running, its kludgey but it works and the URL > looks much nicer :P > > > > pH > > > >
