Issue 12892 - confgure does not detect java-include/lib right ....
Summary: confgure does not detect java-include/lib right ....
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: 644
Hardware: Other Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: rodarvus
QA Contact: issues@porting
URL:
Keywords:
: 24279 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-03-31 21:45 UTC by gromitt
Modified: 2005-05-19 11:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gromitt 2003-03-31 21:45:15 UTC
Hi Ken .. 

here is the issue about the Java-detection-problem ..... here is the mail as
requested.

From dev-return-10085-palic=billgotchy.de@porting.openoffice.org Sun Mar 30
14:47:56 2003
Reply-To: dev@porting.openoffice.org
From: Ken Foskey <foskey@optushome.com.au>
To: dev@porting.openoffice.org
X-Mailer: Ximian Evolution 1.2.2
Date: 30 Mar 2003 22:44:04 +1000
Subject: Re: [porting-dev] Problem with building OpenOffice.orgBeta on
        debian-unstable (PPC)

On Sun, 2003-03-30 at 22:40, Jan-Hendrik Palic wrote:
> Good Morning ...
>
> On Sun, Mar 30, 2003 at 10:09:46PM +1000, Ken Foskey wrote:
> >> I attached a build.log and two enviroments-source-files for the build 
> >> from OpenOffice.org. As you can see in build.log, I have a problem with
> >> the include. :(
> >> I cannot say, if this is trivial a big problem, but I am fighting with
> >> it some days ... and I have no solution for it. OpenOffice.org 1.0.2/3
> >> are building, but 1.1 does not.
> >
> >Jan your JAVA_HOME is
> >JAVA_HOME="/usr"
> >This leads to:
> >-I$JAVA_HOME/include/linux 
> >Being /usr/include/linux
>
> correct ..
>
> Under debian, Java is installed under /usr/lib/j2se and the developer
> files are under /usr/lib/j2se/1.3. I changed /usr into
> /usr/lib/j2s>
> >which is wrong.
>
> defnitly.
>
> >This should point to the JDK include decks.  Please provide more info on
> >how we can sus this out and get configure to set the values correctly.
>
> I ran ./configure without any configuration-options. So ./configure
> found /usr/bin/java and set JAVA_HOME="/usr" instead
> JAVA_HOME="/usr/lib/j2se/1.3"
>
> Is this a bug in Java?

Nope:  Configure.   Raise an issue and assign it to me with this email
as the source.  I will tinker with it when I get some time.

--
Thanks
KenF
OpenOffice.org developer
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@porting.openoffice.org
For additional commands, e-mail: dev-help@porting.openoffice.org
e/1.3 and it works, thnx for the hint Ken.
>
> I would suggest, that we should write it down for documentation? ;)
Comment 1 gromitt 2003-03-31 21:55:58 UTC
Sorry, I assigned it to the wrong Ken :)
Comment 2 foskey 2003-04-04 15:04:52 UTC
The JAVA_HOME varaiable is set to /sr which stuffs up other settings.
Comment 3 foskey 2003-04-20 13:02:34 UTC
Accepting issue to be worked on.  Currently focussed on porting please
submit a patch :-)
Comment 4 foskey 2003-04-23 23:45:22 UTC
This also occurs when you use --whith-jdk-home= option.
Comment 5 sparcmoz 2003-05-19 14:53:17 UTC
similar problem with ANT building 1.1beta on sparc linux debian/testing

./configure --with-ant-home=/usr/local/ant
ANT_HOME="/usr"

Comment 6 foskey 2004-01-12 09:36:16 UTC
*** Issue 24279 has been marked as a duplicate of this issue. ***
Comment 7 foskey 2004-07-24 11:28:18 UTC
This is related to java if it is /usr/binjava
Comment 8 rodarvus 2004-08-10 14:05:30 UTC
Jan,

Ken passed to me the maintainership of the config_office infrastructure, so 
this bug belongs to me now :)

I don't have an installation of Debian handy to test this bug, but it seems to 
me that the solution is to search for another environment variable, to fill 
$JAVA and $JAVAC. Do you know of such variable?

(if not, I will need to install Debian locally, to find a fix for this bug, 
and that might take a few days :/ )
Comment 9 rodarvus 2004-10-06 21:35:49 UTC
commited fix/checks into branch rodarvus01:

- checks if $JAVA_HOME is /usr if --with-jdk-home was not passed (and warns)
- checks if $JAVA_HOME is valid if --with-jdk-home was not passed (and warns)
- uses value of --with-jdk-home, if it was passed
Comment 10 Martin Hollmichel 2005-05-19 11:15:31 UTC
close issue.