Open the terminal and create a new folder:
sudo mkdir /mnt/Files
Mount the shared folder:
sudo mount.vboxsf Files /mnt/Files/
sudo mkdir /mnt/Files
sudo mount.vboxsf Files /mnt/Files/
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
java -version
sudo update-alternatives --config java