Error: could not find java 2 runtime environment.

I tried on my ubuntu 7.1 machine.
It is amd 64 cpu ( if this matters ).

I got "Error building library 'sprite'"

This occurred both arduino0009 & 0010.

What should I do to correct this error ?

Thanks
samira