Go to your home directory. ----> "cd ~"
then edit your .bash_profile ----> "vi .bash_profile" then press i to 
allow insert

under the line  "PATH=$PATH:$HOME/bin" add the following lines
JAVA_HOME=_yourjavahomedirectory_
export JAVA_HOME

save and quit VI ----> press escape then type ":wq"

then restart mandriva
if you are using the javasdk then you are supposed to use JDK_HOME instead.

Tata Dano wrote:
> Hello Guys,
>
> I was trying to run a GeoServer for GIS applications with Mandriva
> 2008. But every time I would try to run it i got this message: "The
> JAVA_HOME environment variable is not defined correctly. This
> environment variable is needed to run this program". With some
> readings, I set the JAVA_HOME and its PATH via /etc/profile. But then
> again I still got the same result. Btw, i place the geoserver folder
> at /var/www/html.
>
> Any advice or particular experience on this case? A million thanks in advance.
>
> Tata
>
>   

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to