CONFIGURE JAVA
It needs having installed on your system a Sun Java 5 compatible compiler.
You can install it parallel to the usual open-jdk, usually already present on your machine.
Check that's not already on your machine for any reason with:
java -version
If you work with Lucid Lynx: go to your sources.list file and uncomment:
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
You have to follow some easy steps:
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java and chose the sun-java one
Set two values into your ~/.bash_profile or your ~/.bashrc (according to your system you could find any of them) :
export JAVA_HOME=<path to the folder of your jdk> (ex. )
export PATH=$PATH:<path to the bin folder within your jdk's dir> (ex. )
CONFIGURE MAVEN
native_platform=linux native_distribution=Ubuntu-9.10 native_compiler=gcc4 native_arch=i386 native_libraryType=dynamic export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType }
Well, you should change each value with the one corresponding to your machine's values!
INSTALL LIBRARIES
mvn install from the folder org.gvsig.maven.base/.
CONFIGURE ECLIPSE's WORKSPACE AND COMPILING a GVSIG
Set the following properties:
mvn-install mvn-configure-eclipse-workspace
M2_REPO = [USER_HOME]/.m2/repository
Execute build/projects/gvsig-standard/build.xml from ant perspective:
If everything goes right, after having got BUILD SUCCESSFULL, with build project selected click on run java application. You will be able to select which platform to chose for your gvSIG.
REFERENCES
Comments
Pingback
[...] Compiling gvSIG 2.0 with Ubuntu 10.04 LTS (& 9.10) (1st part) | IOSA.it iosa.it/content/compiling-gvsig-20-ubuntu-1004-lts-910-1st-part – view page – cached * InterFace 2010: Humanities and Technologies 2nd International Symposium for Humanities and Technology Thursday, July 15, 2010 - Friday, July 16, 2010 Tweets about this link Topsy.Data.Twitter.User['j03lar50n'] = {"photo":"http://a3.twimg.com/profile_images/428823643/bruce-701814_normal.png","url":"http://twitter.com/j03lar50n","nick":"j03lar50n"}; j03lar50n: “RT @xurxosanz: Compiling #gvSIG 2.0 with Ubuntu 10.04 LTS (& 9.10) (1st part) by Luca, the #GSoC student http://is.gd/czxY9 #td ” 3 minutes ago retweet Topsy.Data.Twitter.User['xurxosanz'] = {"photo":"http://a1.twimg.com/profile_images/931970986/boda_normal.jpg","url":"http://twitter.com/xurxosanz","nick":"xurxosanz"}; xurxosanz: “Compiling #gvSIG 2.0 with Ubuntu 10.04 LTS (& 9.10) (1st part) by Luca, the #GSoC student http://is.gd/czxY9 #td ” 2 hours ago retweet Filter tweets [...]