From: Willie WY Wong <wongwwy@member.ams.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Setting Java VM for just one program
Date: Thu, 23 Feb 2012 23:33:18 +0100 [thread overview]
Message-ID: <20120223223318.GB8533@Gee-Mi-Ni> (raw)
In-Reply-To: <CALzub=r7wA-mDE5uvFh+-Q89qK0-oZWENVW0_KRK5cEg3RSUkQ@mail.gmail.com>
On Thu, Feb 23, 2012 at 09:26:56PM +0100, Penguin Lover András Csányi squawked:
> On 23 February 2012 21:13, Willie WY Wong <wongwwy@member.ams.org> wrote:
> > Hi list,
> >
> > Is there a way to set the Java VM based on program?
> >
> > For the most part I would like to keep icedtea-bin-7 as my system VM,
> > but there is one program (jabref-2.6) which doesn't run well with
> > java-7, but works fine with icedtea-bin-6.
> >
> > Is there a "Gentoo" way of setting this?
>
> I don't think there would be a way to achieve this. I think, there is
> a way to set the java vm for your application when you start it. You
> can create an alias to handle easier the program starting, for
> example.
>
I just realised that /usr/bin/jabref is a bash script, which says
---------------
gjl_package=jabref
gjl_main="net.sf.jabref.JabRef"
source /usr/share/java-config-2/launcher/launcher.bash
---------------
and launcher.bash contains the lines
---snip-------
# Source package env
# ---------------------
gjl_user_env="${HOME}/.gentoo/java-config-2/launcher.d/${gjl_package}"
gjl_system_env="/etc/java-config-2/launcher.d/${gjl_package}"
if [[ -f "${gjl_user_env}" ]]; then
source "${gjl_user_env}"
elif [[ -f "${gjl_system_env}" ]]; then
source "${gjl_system_env}"
fi
---end snip---
which makes me suspect that there is a way to give per-package
specifications. Is there documented anywhere?
Cheers,
W
--
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
et vice versa ~~~ I. Newton
prev parent reply other threads:[~2012-02-23 22:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 20:13 [gentoo-user] Setting Java VM for just one program Willie WY Wong
2012-02-23 20:26 ` András Csányi
2012-02-23 22:33 ` Willie WY Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120223223318.GB8533@Gee-Mi-Ni \
--to=wongwwy@member.ams.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox