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:
Mon, 24 Mar 2014 07:52:16 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
 Try "rpm -ql java-1.7.0-openjdk-src | less"

The default of "JAVA_HOME", now, that's different, because you can
reasonably safely install multiple versions of java with multiple
relevant "JAVA_HOME" directories and pick which set to use. The
defaults wend a twisty path through "/usr/bin/java" which is symlinked
to "/etc/alternatives/java", which is symlinked to
"/usr/lib/jvm/jre-[version]/bin/java"

If you need to muck with JAVA_HOME to pick alternative versions, use
/usr/lib/jvm/java-[version].[arch]. Otherwise, stop trying to outsmart
it and simply use the "/usr/bin/java" or "/usr/bin/jre" symlinks as
needed.



On Mon, Mar 24, 2014 at 3:24 AM, Mahmood Naderan <[log in to unmask]> wrote:
> Hi
> I have installed
>
> java-1.7.0-openjdk-devel
> java-1.7.0-openjdk-src
>
> however I can not find the root folder of jdk source. Searching all files
> shows many folders and I can not figure-out where it is. Some programs need
> $JAVA_HOME. What is the default location?
>
> Regards,
> Mahmood

ATOM RSS1 RSS2