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

jvergara
25.35.2007 b7bbff3851444b4390c87e23a846c5bdcab2700f
refs
author jvergara <jvergara@localhost>
Wednesday, April 25, 2007 14:35 +0200
committer jvergara <jvergara@localhost>
Wednesday, April 25, 2007 14:35 +0200
commitb7bbff3851444b4390c87e23a846c5bdcab2700f
tree ac98175ab8d9eccb34d8d690438c2c772fc6376c tree | zip | gz
parent 30273925a9cd0da65e289ef79c9116a40a3c9abf 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
opends/resource/bin/_client-script.bat 3 ●●●● diff | view | raw | blame | history
opends/resource/bin/_client-script.sh 3 ●●●● diff | view | raw | blame | history
opends/resource/bin/_server-script.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/_server-script.sh 3 ●●●● diff | view | raw | blame | history
opends/resource/bin/start-ds 19 ●●●●● diff | view | raw | blame | history
opends/resource/bin/start-ds.bat 11 ●●●●● diff | view | raw | blame | history
opends/resource/bin/stop-ds 19 ●●●●● diff | view | raw | blame | history
opends/resource/bin/stop-ds.bat 11 ●●●●● diff | view | raw | blame | history