SCIENTIFIC-LINUX-USERS Archives

March 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nico Kadel-Garcia <[log in to unmask]>
Reply To:
Nico Kadel-Garcia <[log in to unmask]>
Date:
Sun, 23 Mar 2014 08:12:53 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
On Sat, Mar 22, 2014 at 10:00 PM, zxq9 <[log in to unmask]> wrote:
> On Saturday 22 March 2014 06:44:19 Joseph Areeda wrote:
>> Hi All,
>>
>> My immediate problem is that the utility "jar" is not in my path and
>> update-alternatives --config java does not set up the symbolic link.  I
>> currently have /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java selected.
>> This is as installed.
>>
>> In my reading I can see a way to set up a new alternative by installing
>> all the utilities as slaves.
>>
>> Is there a way to just add jar and a few other utilities to the existing
>> alternative?

You may have to rethink this. If you want to consistently use a
consistent Java release for a particular package, you can get in
trouble changing the "alternatives" settings for *all* system software
the way you've been doing. In particular, it will be reset
automatically when you RPM update any of your Java core packages.

If you need a particular bundle, strongly consider setting "JAVA_HOME"
for the relevant user or the rlelevant software configuratoin to point
to /usr/lib/jvm/java-1.7.0-openjdk.x86_64/  or similar locations, and
set PATH to include /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin first.

ATOM RSS1 RSS2