Bug 57906

Summary: java detection is incomplete
Product: [Unmaintained] kdelibs Reporter: Thomas Zander <zander>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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*)