Thank you for answering.
Since I wrote the message, I have gained new pieces of information. I read this homepage https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/Java6Transition and installed openjdk.
What I have tested works, but some say not all features are supported by openjdk.