How to determine $JDK_HOME ?

Nicolas Mailhot nicolas.mailhot at laposte.net
Sun Dec 7 20:44:43 UTC 2008


Le dimanche 07 décembre 2008 à 12:11 -0800, Conrad Meyer a écrit :
> On Sunday 07 December 2008 12:05:35 pm Peter Lemenkov wrote:
> > Hello All!
> > Subj.
> > Just found that on x86  and ppc OpenJDK-devel installs into
> > "/usr/lib/jvm/java-1.6.0-openjdk", on x86_64 - into
> > "/usr/lib/jvm/java-1.6.0-openjdk.x86_64", and on ppc64 - into
> > "/usr/lib/jvm/java-1.6.0-openjdk.ppc64".
> >
> > Is it intentional, or this is a bug? In any case how can I pass JDK
> > home to buildscripts w/o ugly %ifarch/else?

> Well, we also use alternatives to handle choosing the java version to use. If 
> JDK_HOME is just supposed to contain 'bin/javac' then you can set it 
> to '/usr'.

The "jre" alternative controls access to the default system jre, and the
"java" alternative does the same for the full jdk

-- 
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20081207/6c90458d/attachment.sig>


More information about the fedora-devel-list mailing list