Fix for issue 3180 (Setup should give the path of the detected java when incorrect version is detected.)
| | |
| | | MILD_ERR_ERROR_CREATING_JAVA_HOME_SCRIPTS=Error updating scripts with java \ |
| | | properties. Error code: %d |
| | | SEVERE_ERR_INCOMPATIBLE_VERSION=The minimum Java version required is %s.%n%n\ |
| | | The detected version is %s.%n%n\Please set OPENDS_JAVA_HOME to the root of a \ |
| | | compatible Java installation or edit the java.properties file and then run \ |
| | | the dsjavaproperties script to specify the java version to be used. |
| | | The detected version is %s.%nThe binary detected is %s%n%n\Please set \ |
| | | OPENDS_JAVA_HOME to the root of a compatible Java installation or edit the \ |
| | | java.properties file and then run the dsjavaproperties script to specify the \ |
| | | java version to be used. |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |