[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#283557: java-common: JAVA POLICY: define defaultJAVA_HOME=/usr/lib/java as alternative.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tue, 7 Dec 2004 13:59:04 +0100 (MET), 
"Eric Lavarde - Debian" <deb@zorglub.s.bawue.de> wrote: 

> Hi,

Hallo,

> the program which needed JAVA_HOME was 'ant'; it might have had to do with
> the fact that I had the JDK and JRE packages both installed with some
> alternatives (java) pointing to the JRE and some (javac) to the JDK.
> But, anyway, I had to define JAVA_HOME to make it work.

if 'ant' (not libant1.6-java, the package 'ant') does not work out of
the box, you should read the bug reports from ant and if there is no
one corresponding to what you think your bug is related to, you can file
a bug against 'ant'.

> And I thought that what I proposed is aligned with the policy rule you are
> listing (and which I considered in my thoughts). If /usr/lib/java is
> defined as the default alternative for the JAVA_HOME directory, I can, in
> my program, script, Makefile, rule-file, set JAVA_HOME to the default
> /usr/lib/java value, giving the user a chance to overrule this through his
> own definition of JAVA_HOME.
> Am I clear? :-)

I think I understand it well. I don't say it's a bad idea. I say
software should not use ENV_VAR to run.

> I am not saying JAVA_HOME should be set to /usr/lib/java, I am saying
> that /usr/lib/java could be created as alternative to be used as
> default value for JAVA_HOME within programs.

It'll be a charm to package, go a head ;-)

> But if you think that my configuration is broken, and ant shouldn't need
> JAVA_HOME, then I'll try to fix it myself. Actually I think I already
> fixed it by removing the JRE and re-linking the different alternatives to
> the JDK (but I don't notice because JAVA_HOME is defined in my Makefile).

That's also what I did. Note that if you use libant1.6-java, you can
launch ant with a JRE... it's enough. You'll have to tell
- -Dbuild.compiler=jikes or another compiler (not 'modern' as it is the
non-free one)

Cheers,

- -- 
Arnaud Vandyck
http://fosdem.org/
Free and Open Source Developers' European Meeting
February 26-27 2005,
Bruxelles, Belgium
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBtcoS4vzFZu62tMIRAmp4AKCKvX3eWGbFV47R7y9OExFPxPiuoQCfQaXD
Y8ynQ3TsVrQb5/JUrTYtrFY=
=lqOx
-----END PGP SIGNATURE-----



Reply to: