Sun Java installation issues
Derek Broughton
news at pointerstop.ca
Tue Oct 7 16:29:48 UTC 2008
NoOp wrote:
> On 10/06/2008 08:05 PM, Derek Broughton wrote:
>> NoOp wrote:
>>
>>> On 10/06/2008 04:18 AM, Glenn Holmer wrote:
>>>> On Tue, 2008-09-23 at 14:17 -0700, NoOp wrote:
>>>>> To install from Sun:
>>>>
>>>>> (unless you are adventurous and want to try Java SE 6 Update 10 RC).
>>>>> Read the installation instructions from:
>>>>> http://java.sun.com/javase/6/webnotes/install/jre/install-linux.html
>>>>> [Installation of Self-Extracting Binary]
>>>>> You'll want this one to go in your /usr/lib/jvm directory so that you
>>>>> can use it system-wide.
>>>>
>>>> Does this really give it system-wide? In other words, if you open a
>>>> console and type "java -version"? What about /etc/alternatives?
>>
>> update-java-alternatives
>
> No. That won't fix 'java -version' and /etc/alternatives. That's why I
> use galternatives to modify.
It's what I've always used. It _has_ to set up /etc/alternatives, because
update-java-alternatives is just a front end to update-alternatives, and
update-alternatives is the correct way to modify /etc/alternatives.
Whether it fixes "java -version" is just a matter of whether you've got
something on the path ahead of the version pointed to by the alternatives
system.
>
> Another interesting issue that I ran into; you _need_ to have the repo
> version installed to get the .jinfo file in /usr/lib/jvm. If you purge
> the repo Sun version, it also purges the .jinfo file.
Yes.
--
derek
More information about the ubuntu-users
mailing list