From c47b752167c38d9088bc79b66097b5ffd817162b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 18 Apr 2008 07:39:24 +0000
Subject: [PATCH] Fix for issue 3180 (Setup should give the path of the detected java when incorrect version is detected.)

---
 opends/src/quicksetup/org/opends/quicksetup/util/Utils.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 06aeadd..050ec4d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1500,8 +1500,11 @@
           i.getVersion().compareToIgnoreCase(version) <= 0;
         if (!versionCompatible)
         {
+          String javaBin = System.getProperty("java.home")+File.separator+
+          "bin"+File.separator+"java";
           throw new IncompatibleVersionException(
-              ERR_INCOMPATIBLE_VERSION.get(i.getVersion(), version), null);
+              ERR_INCOMPATIBLE_VERSION.get(i.getVersion(), version, javaBin),
+              null);
         }
       }
     }

--
Gitblit v1.10.0