Installing GeoServer on Ubuntu

Recently, I install GeoServer 1.7.6 on Ubuntu 9.04. I would like to share some information with everybody what I have configured on my local PC.

As far as I follow the installation instruction of GeoServer documentation for Linux I get the error message “The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program” when I try to startup server by typing “sudo sh startup.sh”. It means that it doesn’t find the default path for JAVA_HOME so you need to setup.

Setting up JAVA_HOME you need to lookup the Java program path in your PC. In my local PC is “/usr/lib/jvm/java-6-sun”.

Finally you also setup GEOSERVER_HOME is where GeoServer folder stores on your local PC.

Anyway you can copy the codes below to startup.sh, shutdown.sh files in /geoserver/bin folder, put on the top and replace the path.

JAVA_HOME="/usr/lib/jvm/java-6-sun";
GEOSERVER_HOME="/home/administrator/software/geoserver";

1 person has left a comment

anitagraser - Gravatar

anitagraser said:

Thanks for that! You saved me a lot of trouble.

Posted on: October 13, 2009 at 4:03 amQuote this Comment

Leave a Comment-

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs are automatically generated. Off-topic or inappropriate comments will be edited or deleted. Email addresses will never be published. Keep it PG-13 people!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

All fields marked with "*" are required.