Le 05/12/2013 06:47, tony mancill a écrit :
>>> On 2013-12-04 12:15, Damien Hardy wrote:
>>>> Hello,
>>>>
>>>> I asked on irc but seams everybody is still in bed :)
>>>>
>>>> We want to deploy multiple JVM on our hosts (sun java6 and Java7 mainly)
>>>> because of some requirement for our developments.
>>>>
>>>> Finding out which JVM to use for a package and set JAVA_HOME and PATH
>>>> accordingly is quite heavy.
>>>> Our packages should depends on virtual package java6-runtime-headless or
>>>> java7-runtime-headless for example.
>>>>
>>>> So idea is to add alternative for every Provided  virtual package for a
>>>> JVM in /usr/lib/jvm so application can easily rely on
>>>> /usr/lib/jvm/java7-runtime-headless to set JAVA_HOME and PATH
>>>> ($JAVA_HOME/bin:$PATH) without any problem (like /usr/bin/java pointing
>>>> to some java6 version required by an older application)
> Hi Damien,
> 
> Maybe take a look at the java-wrappers package.  You can use that to
> write some wrapper scripts and either set the JAVA_FLAVOR to desired
> value or use the find_java_runtime function.  Refer to
> /usr/lib/java-wrappers/jvm-list.sh for supported values.
> 
> If you run into problems, the author is frequently on this list.
> 
> Cheers,
> tony
> 

Hi Tony,

Thank you pointing out this package it can be an answer to my problem
except that it does not handle with external JVM (we packed oracle java7
for squeeze here)
or it need some tweak in /usr/lib/java-wrappers/jvm-list.sh.

Does my proposition lead to problems I am not aware of ? (that could
avoid workaround like java-wrapper thing also)

Cheers

-- 
Damien HARDY


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to