Mail archive

Re: [alpine-aports] [PATCH 1/2] testing/openjdk8: install profile to /etc/profile.d

From: Timo Teras <>
Date: Sat, 3 Oct 2015 14:20:44 +0300

On Sat, 3 Oct 2015 02:42:49 +0200
Sören Tempel <> wrote:

> On 02.10.15, Timo Teras wrote:
> > Is this needed for some specific reason?
> >
> > The idea has been that java-common provides symlinks
> > from /usr/bin/{$java_utils} to ../lib/default-jvm/... and
> > default-jvm is updated by java-common's trigger script when ever a
> > java sdk is installed or removed.
> Ah, didn't know about java-common, just looked at it and it is missing
> many binaries (e.g. javac). Wouldn't it be the better solution to do
> it this way instead of relying on java-common? It's obviously harder
> to keep java-common up to date instead of simply installing a profile
> file. If you disagree changing $PATH isn't needed for some specific
> reason but some applications rely on JAVA_HOME being set one example
> is the android studio IDE.

Yes, it was supposed to export only the JRE. Javac is part of the SDK.
Perhaps java-common should export the 'default-jvm' to environment
then. Or potentially have the SDK packages provide the environment. But
at least for JRE only I'd rather not export anything to environment
unless absolute necessary for some specific reason.

Received on Sat Oct 03 2015 - 14:20:44 UTC