Ubuntu - Installing sun-java5-jdk

126 views
Skip to first unread message

Master_Ne0

unread,
Nov 27, 2009, 4:38:53 AM11/27/09
to android-platform
Hi,

Having problems getting java 1.5 onto my Ubuntu machine, 1.6 is
already installed and the synaptic package installer doesn't appear to
have it. Does anyone here have any advice on how to get it installed?

Tried the Ubuntu forums, but to no avail! Once it have it, i can get
back to work!

Ne0

Fred Grott

unread,
Nov 27, 2009, 3:24:04 PM11/27/09
to android-...@googlegroups.com
You shoul d be to install it by getting the download from sun..

Remember to set the java alternatives after you install it..

Fred Grott
Android Mobile Developer
http://mobilebytes.wordpress.com
googlewave: fred....@googlewave.com
Chat Google Talk: fred.grott Skype: fred.grott
Contact Me Linkedin Twitter Wordpress





--

You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



Adam Jiang

unread,
Nov 28, 2009, 8:39:47 AM11/28/09
to android-...@googlegroups.com
On Fri, Nov 27, 2009 at 6:38 PM, Master_Ne0 <master.ne0...@googlemail.com> wrote:
Hi,

Having problems getting java 1.5 onto my Ubuntu machine, 1.6 is
already installed and the synaptic package installer doesn't appear to
have it. Does anyone here have any advice on how to get it installed?


See this:

  So to get the repo for java5 add these lines to your /etc/apt/sources.list

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

Best regards
--
Adam Jiang
------------------------------------------
e-mail:jiang...@gmail.com
http://www.adamjiang.com

PulseDev

unread,
Nov 28, 2009, 11:50:19 AM11/28/09
to android-platform
Alternatively you can easily get it from the jaunty-multiverse and
jaunty-multiverse-updates repositories.

Temporarily change your accepted packages list to use...
deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

Then install Java1.5...
sudo apt-get update
sudo apt-get install sun-java5-jdk

And make Java1.5 the default version...
sudo update-java-alternatives -s java-1.5.0-sun

Then change your packages list back to the Karmic Koala repositories
and you should be good to go.

Gerard Martin

unread,
Nov 29, 2009, 9:39:40 AM11/29/09
to android-platform
To do this, I had to manually add the Jaunty multiverse repo to my
Ubuntu Software Sources and then apt-get install it. It's no longer
supported in Karmic, but doing it this way still works.

Make sure to run update java alternatives to switch from java 6 to
java 5.

- Gerard

On Nov 27, 9:38 am, Master_Ne0 <master.ne0s.soluti...@googlemail.com>
wrote:

ekwang

unread,
Nov 30, 2009, 12:38:07 AM11/30/09
to android-platform
Yes, past version JDK does not exist in default repository of ubuntu
9.10.
Here is the people who have same problem.
http://groups.google.com/group/android-platform/browse_thread/thread/fe57d68477dcbf32#

On 11월28일, 오전5시24분, Fred Grott <fred.gr...@gmail.com> wrote:
> You shoul d be to install it by getting the download from sun..
>
> Remember to set the java alternatives after you install it..
>
> Fred Grott
> Android Mobile Developerhttp://mobilebytes.wordpress.com<http://mobilebytes.wikidot.com/>
> googlewave: fred.gr...@googlewave.com
> Chat Google Talk: fred.grott Skype: fred.grott
> Contact Me [image: Linkedin] <http://www.linkedin.com/in/shareme> [image:
> Twitter] <http://twitter.com/sharemefg> [image:
> Wordpress]<http://mobilebytes.wordpess.com>
>
> --- @ WiseStamp Signature <http://www.wisestamp.com/email-install>. Get it
> now <http://www.wisestamp.com/email-install>
>
> On Fri, Nov 27, 2009 at 3:38 AM, Master_Ne0 <
>
>
>
> master.ne0s.soluti...@googlemail.com> wrote:
> > Hi,
>
> > Having problems getting java 1.5 onto my Ubuntu machine, 1.6 is
> > already installed and the synaptic package installer doesn't appear to
> > have it. Does anyone here have any advice on how to get it installed?
>
> > Tried the Ubuntu forums, but to no avail! Once it have it, i can get
> > back to work!
>
> > Ne0
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .

nictam

unread,
Nov 30, 2009, 10:19:58 AM11/30/09
to android-platform
hello,

I did something different, and it seems to work. I would like to get
your feedback on that: (note that I am building the eclair public
complete code base)
- I downloaded the JAVA installation .bin file from java.sun.com
- I extracted it into my $HOME ( I am using build servers at my
company place, and I am not allowed to run 'sudo' commands)
- before building, I set PATH to include my $HOME/jdk/bin folder
first.

I can build fine public Eclair code base.

Is someone else doing something similar? I am surprised because it
looks like a simple solution but I have never seen someone mentioning
it. So I might be doing something wrong...


On Nov 30, 6:38 am, ekwang <ekwa...@gmail.com> wrote:
> Yes, past version JDK does not exist in default repository of ubuntu
> 9.10.
> Here is the people who have same problem.http://groups.google.com/group/android-platform/browse_thread/thread/...

ekwang

unread,
Nov 30, 2009, 8:15:30 PM11/30/09
to android-platform
hello,
$which java
tell you which jdk is used when compile.
If the result is "/usr/bin/java" or other not you installed, your
company server already installed jdk5 succesfully.
I suppose so It work well.

Master_Ne0

unread,
Dec 1, 2009, 8:11:22 AM12/1/09
to android-platform
Thanks, all i will give these a go. Bit of a noob when it comes to
Ubuntu, didn't realise you could change what repo the package manager
was looking at!

Ne0
Reply all
Reply to author
Forward
0 new messages