How to accept sun's EULA or installing sun-java 5-sdk

Asked by Jonny Fransson on 2009-11-17

I have a clean install of 9.10 and followed the installation instructions for the android project.
However the build environment require the package sun-java5-jdk but the only packet I managed to install was 1.6.
I found the old packet in the archive but the complaint is now that I have to accept suns EULA wich I did installing 1.6.
There is now references what so ever how to accept the suns EULA. All there is everywhere is the following--

"NOTE: You must accept Sun's EULA prior to successfully installing this package"

Well ok! but how? Shall I phone them? First of all this is a question of how do I proceed to install the package. The apt-get thing can only find the sun-java6-jdk. Secondly this is a message to the linux community in general. It is unacceptable to have to browse around and trying to find a solution to a problem that shouldn't exist at all. I also have to say that if the linux community want to compete with other oses out there the developers and managment etc. must think ahead. Don't assume that everyone runs on the same system as you. Even as a developer or a wannabe whatever ( if you like) I can't know everything on every system. This ranting isn't only towards ubuntu community is is also towards the sun java development team that failed to have compability with 1.5 and this is also towards the android community that have know about this problem for a long time.

Well, regards anyway

Jonny

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sun-java5 Edit question
Assignee:
No assignee Edit question
Solved by:
Jonny Fransson
Solved:
2009-11-18
Last query:
2009-11-18
Last reply:
2009-11-17
arochester (arochester) said : #1

I have come across this before. Not quite a bug, more of an anomaly. Different ways of installing produce different results.

Open a Terminal and issue the command: sudo apt-get install sun-java5-jdk

That should do the trick and produce a box for you to accept the EULA.

As said in the text the apt-get only work with the java6 package! The sun-java5-jdk package isn't anymore!

press tab, then press enter

What information do you miss. If I am a bad writer ask for more information.

The exact answer to arochester's suggestion "~$ sudo apt-get install sun-java5-jdk" is

E: Couldn't find package sun-java5-jdk

~$

Do you wan't me to press tab enter here? Hm I don't think so.

If you wonder if the network is working so yes it is and don't treat me like I am an idiot.

I will press TAB TAB ENTER

No, you accept the license when asked by pressing tab then press enter

Well I am not asked!

I was asked when installing the java6 package trough the apt-get. That was ok and worked very fine.
When launching the seperatly dowloaded package I don't get the box and I don't get asked at all. I only get a message that there is an unresolved dependency. And I don't know how to resolve the dependency. If there was a box or a question or anything I would be able to but there is nothing.

It may be that packages aren't meant to be installed by downloading it from the archive and thus that dependencies aren't resolved automatically but I don't know how to else get the old package. So is there an sun-java5-Eula pack somewere?

Sorry if a haven't been clear enough about the problem.

Regards Jonny

Can you give the output of:

sudo apt-get update; sudo apt-get -f install; sudo apt-get upgrade

Thanks

I don't have the machine here. I will give the output of this tomorrow.

Jonny

I got a solution from the android-platform mailing list and it was to add jaunty multiverse to the etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

and then doing an update + install of the java5 package.

What problems am I likley to encounter if I leave the entries in the list by the way?

Thank you for your time.

Problem solved

Jonny

None, you should leave them in as you will get updates.

You are running Jaunty, so you should not use Jaunty repos, the server has a karmic repo too so you should change the word 'jaunty' in the lines to 'karmic'. Mixing release packages like this is not advised, Jaunty packages are for Jaunty only.