Bug 57906 - java detection is incomplete
Summary: java detection is incomplete
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-30 18:15 UTC by Thomas Zander
Modified: 2004-05-17 20:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander 2003-04-30 18:16:00 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

In the configure script in kdebase (and kdebindings) java detection is done using find, and the configure script used an old version I still had on my system.

The SUN JRE requires an environment variable to be set called 'JAVA_HOME' I recomend using that instead, and maybe fall back to the find method if the $JAVA_HOME way fails...

ps. JAVA_HOME points to the base dir; the one that contains the bin dir for example.
Comment 1 Dirk Mueller 2003-07-14 16:46:51 UTC
Subject: kde-common/admin

CVS commit by mueller: 

use $JAVA_HOME if set. 
CCMAIL: 57906-done@bugs.kde.org


  M +3 -0      acinclude.m4.in   2.376


--- kde-common/admin/acinclude.m4.in  #2.375:2.376
@@ -4820,4 +4820,7 @@
      
       dnl No option set -> look in $PATH
+      if test -n "$JAVA_HOME"; then
+        KDE_JAVA_PREFIX($JAVA_HOME)
+      fi
       KDE_JAVA_PREFIX(/usr/j2se)
       KDE_JAVA_PREFIX(/usr/j*dk*)