<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Environment Variables in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178755#M9443</link>
    <description>in /etc/profile or .bash_profile&lt;BR /&gt;&lt;BR /&gt;JAVA_HOME=/usr/java/j2sdk1.4.1 &lt;BR /&gt;export JAVA_HOME&lt;BR /&gt;&lt;BR /&gt;Done&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 30 Jan 2004 10:23:33 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-01-30T10:23:33Z</dc:date>
    <item>
      <title>Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178752#M9440</link>
      <description>I'm trying to start up Tomcat on RH 9.0 and after doing the ./startup.sh i'm getting the error message below.&lt;BR /&gt;&lt;BR /&gt;"The JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program."&lt;BR /&gt;&lt;BR /&gt;Can somebody tell me the exact way to set this? I want the variable to be JAVA_HOME=/usr/java/j2sdk1.4.1    &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Kyle&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 09:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178752#M9440</guid>
      <dc:creator>Kyle D. Harris</dc:creator>
      <dc:date>2004-01-30T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178753#M9441</link>
      <description>export JAVA_HOME=usr/java/j2sdk1.4.1&lt;BR /&gt;&lt;BR /&gt;in the .bashrc of the account running Tomcat.&lt;BR /&gt;(This assumes bash as the shell, other shell will require other syntax/login scripts)&lt;BR /&gt;&lt;BR /&gt;HTH, Martin &lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 10:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178753#M9441</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-01-30T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178754#M9442</link>
      <description>Just use:&lt;BR /&gt;export JAVA_HOME=/usr/java/j2sdk1.4.1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 10:18:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178754#M9442</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2004-01-30T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178755#M9443</link>
      <description>in /etc/profile or .bash_profile&lt;BR /&gt;&lt;BR /&gt;JAVA_HOME=/usr/java/j2sdk1.4.1 &lt;BR /&gt;export JAVA_HOME&lt;BR /&gt;&lt;BR /&gt;Done&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 30 Jan 2004 10:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178755#M9443</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-30T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178756#M9444</link>
      <description>or in startup.sh ... for greater flexibility. IE: if you need more than 1 jvm version.</description>
      <pubDate>Fri, 30 Jan 2004 13:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178756#M9444</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2004-01-30T13:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178757#M9445</link>
      <description>Oddly, i had it set up like you all said in /etc/profile and still get the error when trying to start up tomcat. &lt;BR /&gt;&lt;BR /&gt;When i cd to $JAVA_HOME it works fine and goes to the correct directory. I'm not sure why it's displaying that error when trying to start tomcat....?</description>
      <pubDate>Fri, 30 Jan 2004 13:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178757#M9445</guid>
      <dc:creator>Kyle D. Harris</dc:creator>
      <dc:date>2004-01-30T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178758#M9446</link>
      <description>It sounds as though it's not set in the environment where Tomcat is trying to run.&lt;BR /&gt;&lt;BR /&gt;If you haven't restarted Tomcat's processes, you should, because generally speaking, applications and processes won't re-read system configuration files.  So if you edited /etc/profile after starting Tomcat (which it sounds like is NOT the case), the changes would not be seen.&lt;BR /&gt;&lt;BR /&gt;Since it sounds like you had the definitions in place before Tomcat was started, you might try to do some debugging in the environment where Tomcat is running.  For example, if you start it with startup.sh, then put some debugging into it:&lt;BR /&gt;&lt;BR /&gt;    echo "before start, JAVA_HOME is ${JAVA_HOME}"&lt;BR /&gt;&lt;BR /&gt;That way you'll see how things stand.  Of course, it may be buried more deeply in other levels (calls) of scripts.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Mic&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 19:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178758#M9446</guid>
      <dc:creator>Mic V.</dc:creator>
      <dc:date>2004-01-30T19:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178759#M9447</link>
      <description>Hello Kyle,&lt;BR /&gt;&lt;BR /&gt;first check which shell the account for Tomcat is using (info to be found in /etc/passwd). It might be it is not sourcing the file you changed.&lt;BR /&gt;&lt;BR /&gt;Alternatively either change startup.sh (maybe not ideal since you have to do so everytime you install a new Tomcat version) or write a little wrapper script that sets the variable and then calls startup.sh.&lt;BR /&gt;&lt;BR /&gt;Have a nice weekend,&lt;BR /&gt;&lt;BR /&gt;Martin</description>
      <pubDate>Sat, 31 Jan 2004 21:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/environment-variables/m-p/3178759#M9447</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-01-31T21:42:25Z</dc:date>
    </item>
  </channel>
</rss>

