Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On 05/12/10 16:54, Caolán McNamara wrote:
On Sun, 2010-12-05 at 16:35 +0000, Wols Lists wrote:
On 05/12/10 16:08, Caolán McNamara wrote:
On Sun, 2010-12-05 at 14:28 +0000, Wols Lists wrote:
No luck, it's not working. And what's findhome.class supposed to be? A
file in the directory? Not there, I'm afraid :-(
Look into the configure.in itself, and search for "findhome". Looks like
that all the other (incredibly dodgy) hackery to set JAVA_HOME disables
dumping out that piece of java code which (IMO) is likely the best
approach to finding JAVA_HOME automatically.

Nope. That code is looking for $JDK=gcj. On my system $JDK=sun, so it
never gets near it ...
Yes. That's what I'm saying. It has always looked to me that all the
other dodgy hackery to set JAVA_HOME is horribly fragile. AND IMO the
right way is to try and run findhome which has some chance of giving the
right result. Well, assuming that "findhome" gives the right results.

So, humour me, and cut and paste the contents of findhome.java out of
configure into something called "findhome.java", run javac findhome and
java findhome and what output does it give. i.e. does it give the same
output as what you had to pass to --with-jdk-home manually

Yup. findhome found the right place (or I assume it did).

/opt/icedtea6-bin-1.9.1

The other thing I tried (which I presume is not guaranteed to work
everywhere :-( is "whereis", which found it fine, too.

Cheers,
Wol

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.