mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
25.35.2007 8af77c24e39d1f03f6f4c5bebf582556cdf9de45
refs
author jvergara <jvergara@localhost>
Wednesday, April 25, 2007 14:35 +0200
committer jvergara <jvergara@localhost>
Wednesday, April 25, 2007 14:35 +0200
commit8af77c24e39d1f03f6f4c5bebf582556cdf9de45
tree c8b5de03a758c90d3ebeb4f6290053eaeddbf470 tree | zip | gz
parent 38ab92d03d3149a323ac7114651375d4ff7e22e3 view | diff
Fix for issue 1273 (exception if JAVA_HOME undefined in scripts).

The fix consists of modifying the scripts to launch the InstallDS classwith a test option using the JVM
that was found. If the JVM can be successfully launched, the JVM is compatible with 1.5, if not we as
sume that is not compatible with JDK 1.5.

The downside of the fix is that it requires an additional start of the JVM each time the command line i
s launched. That is why the fix only applies to setup, uninstall, upgrade, start and stop command lines. The modifications in _server-script.* and _client-script.sh just modify the message displayed when a JVM could not be found (informing that JDK 1.5 or later can be used).
8 files modified
71 ■■■■ changed files
opendj-sdk/opends/resource/bin/_client-script.bat 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/_client-script.sh 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/_server-script.bat 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/_server-script.sh 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/start-ds 19 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/start-ds.bat 11 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/stop-ds 19 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/stop-ds.bat 11 ●●●●● diff | view | raw | blame | history