java

Compiling gvSIG 2.0 with Ubuntu 10.04 LTS (& 9.10) (1st part)

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. )
Syndicate content