how to add sun-java5-sdk? Not in portage

Anything that pertains to Portage

Moderator: Moderators

how to add sun-java5-sdk? Not in portage

Postby tman7510 » Thu Oct 01, 2009 19:18

I would like to add sun-java5-sdk but it is not in portage. also after adding it how to I switch from java 1.6 to 1.5. I want to compile my own android rom and need java5-sdk to do it. Also I'm hoping I can easily switch java versions so I wont mess up sabayon just to compile android for my htc dream. here is a how to but for ubuntu http://www.johandekoning.nl/index.php/2 ... vironment/ I'm sure it isn't hard to do the same with sabayon. Anybody have suggestions tips?
tman7510
Simple Hen
 
Posts: 85
Joined: Sun Mar 16, 2008 5:51

Re: how to add sun-java5-sdk? Not in portage

Postby micia » Thu Oct 01, 2009 19:56

simply run:
Code: Select all
equo search sun


you will find the sun java packages, I assume that you want to develop using java, so run:
Code: Select all
equo install --ask sun-jdk

The latest version of the package on equo is 1.6, if you need a specific version, just add it to the end
of the package name, use:
Code: Select all
equo search sun-jdk

to view all available versions.

If you want to install the SDK using emerge, simply install the package using:
Code: Select all
emerge -av sun-jdk

If you need a specific version, use eix to find all of them, the latest version on portage
should be 1.6.
Code: Select all
eix sun-jdk



In both cases, to switch java versions check:
Code: Select all
eselect java-vm help
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests