From: Caster <cast3r@seznam.cz>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] specifying jvm in scripts?
Date: Mon, 03 Jul 2006 10:40:54 +0200 [thread overview]
Message-ID: <44A8D816.70407@seznam.cz> (raw)
In-Reply-To: <44A8D4C9.4040707@cisco.com>
Roy Wright wrote:
> I have several java programs that I launch via scripts. Some are 1.4,
> some are 1.5.
> Just curious if there is a method to select the jvm from within the
> script independent
> of the system or user jvm? Something like:
>
> JAVACMD = `java-config --java 1.4`
Yes, with GENTOO_VM and VMHANDLE of the jvm you want, like
GENTOO_VM="sun-jdk-1.5"
This will make all the wrapper scripts for java, javac, etc. call the
binaries from selected VM.
If your program also relies on JAVA_HOME, you can add this after the
GENTOO_VM line:
JAVA_HOME=$(java-config --jdk-home)
Not sure how you can make it select "any of the 1.4 vm that's installed"
though...
Also there's some way for packages installed with portage to specify
what VM they need, but I dont know the details, maybe somebody else...
Caster
--
gentoo-java@gentoo.org mailing list
prev parent reply other threads:[~2006-07-03 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-03 8:26 [gentoo-java] specifying jvm in scripts? Roy Wright
2006-07-03 8:40 ` Caster [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=44A8D816.70407@seznam.cz \
--to=cast3r@seznam.cz \
--cc=gentoo-java@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