I am trying to use LO on pclos; problem with java

I have copied my macros from Ooo but cannot run them because of an error message about java; I have checked synaptic and have the latest java available on synaptic. What to do? I believe the version I have is 1.7 and I have seen somewhere that LO wants 1.6. I do not know how to do that.