    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: JAVA_HOME Variable error while installing groundwork</title>
        <link>http://www.linux.com/archive/forums/topic/2395</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/2332">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/2417">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/2395?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/2395">JAVA_HOME Variable error while installing groundwork</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="4" selected="selected">
Please select forum            </option>
            <option value="4">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/4">
        Applications   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/403750">hailer</a>
                   </div>
                   <div class="xar-sub">
Joined: May 26, 2008<br/>Posts: 19                        <br />
                        <a href="http://www.linux.com/archive/forums?by=403750&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted Jul 30, 2008 at 10:10:00 AM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: JAVA_HOME Variable error while installing groundwork                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        hi forum.
i have recntly been trying to install GroundWork Monitor Open Source 5.1.0 on a Hp Intel machine with 3Ghz procesor and 1Gb ram running fedora 8. Everything seems to be ok but java seems to have a problem whenever i try to install groundwork-foundation it indicates that the JAVA_HOME variable is incorrectly set. 
Here is the error::

[code=xml]
The JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program. NB: JAVA_HOME should point to a JDK not a JRE.
error: %pre(groundwork-foundation-pro-2.0.1-48.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping groundwork-foundation-pro-2.0.1-48
[/code]

I added the following lines to the end of the /etc/profile file

[code=xml]

export JAVA_HOME=/usr/java/jdk1.5.0_06

export PATH=$PATH:$JAVA_HOME/bin

[/code]

i have followed the groundwork manual precisely including the part where you set the JAVA_HOME variable and not sure of what the error means.
Ps. i had a previous newer installation of java(default one in fedora installation) which i just overwrote using rpm -i --force jdk*.rpm, Could this be the cause of the error?

I think the same java home variable error also causes my terminal to display 'bash: ‘export: command not found' twice every time a new terminal screen is started.</div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2395#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/403750">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=403750">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/404794">
                                Johannes Truschnigg                           </a>
</strong>

                   <span class="xar-sub">
<br />
<br />
Joined Jun 15, 2008<br/>Posts: 27<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=404794&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jul 30, 2008 12:42:06 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1195597" href="http://www.linux.com/archive/forums/topic/2395#1195597">
                                    JAVA_HOME Variable error while installing groundwork                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        JAVA_HOME usually has to bet set to the path from where &quot;bin/java&quot; (the JRE's main executable) is found.

On your shell, you might get to know where your `java`-binary lives when running `type -p java`, or `which java`. If the output, for example, reads &quot;/usr/bin/java&quot;, your JAVA_HOME is &quot;/usr&quot;.

Modifying the environment of all your users in such a way that their PATH (and their environment itself) contains JAVA_HOME almost certainly is not necessary, and editing /etc/profile is vain anyway - it will be overwritten by your distro at some point in time in the future; there has to be another way to modify your default environment in its init process.

Why your version of bash is lacking the `export` built-in really is beyond me; however, if only the installer of the app in question need JAVA_HOME to be set, there's no need at all to modify your environment in a persistent manner; running JAVA_HOME=/some/path/correct/for/your/setup /path/to/installer/executable` should do the job just fine.

Hth.<p class="hiddensignature">
Free software. Free society. Better lives.</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2395#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/404794">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=404794">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://johannes.truschnigg.info/">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/403750">
                                hailer                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined May 26, 2008<br/>Posts: 19<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=403750&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Aug 01, 2008 9:22:21 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1195749" href="http://www.linux.com/archive/forums/topic/2395#1195749">
                                    Re:  JAVA_HOME Variable error while installing groundwork                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Thanks Johannes Truschnigg for the reply but i managed to fix the problem. It seemed like i was the one who defiled a link incorrectly causing a whole lot of issues with groundwork installation. 
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2395#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/403750">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=403750">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/4">
        Applications   </a>
</span>

</div>



            </channel>
</rss>
