Commit acd0539e06fd8046e3e2629b371fc641a3012a51

Authored by Jarrett Jordaan
1 parent 23a3796d

And some more path issues

Committed by: Jarrett Jordaan

Reviewed by: Prince Mbekwa
setup/wizard/installUtil.php
@@ -768,12 +768,11 @@ class InstallUtil { @@ -768,12 +768,11 @@ class InstallUtil {
768 $sysdir = explode(DS, SYSTEM_DIR); 768 $sysdir = explode(DS, SYSTEM_DIR);
769 array_pop($sysdir); 769 array_pop($sysdir);
770 array_pop($sysdir); 770 array_pop($sysdir);
771 - array_pop($sysdir);  
772 $zendsys = ''; 771 $zendsys = '';
773 foreach ($sysdir as $v) { 772 foreach ($sysdir as $v) {
774 $zendsys .= $v.DS; 773 $zendsys .= $v.DS;
775 } 774 }
776 - $jvm = $zendsys."jre".DS."bin".DS."client".DS."jvm.dll"; 775 + $jvm = $zendsys."java".DS."jre".DS."bin".DS."java.exe";
777 if(file_exists($jvm)) 776 if(file_exists($jvm))
778 return $jvm; 777 return $jvm;
779 } else { 778 } else {
setup/wizard/lib/services/windowsLucene.php
@@ -348,6 +348,8 @@ class windowsLucene extends windowsService { @@ -348,6 +348,8 @@ class windowsLucene extends windowsService {
348 * @return void 348 * @return void
349 */ 349 */
350 private function setJavaJVM() { 350 private function setJavaJVM() {
  351 + $this->javaJVM = SYSTEM_ROOT . "java\jre\bin\client\jvm.dll";
  352 + /*
351 if(file_exists($this->getJavaBin().DS."client".DS."jvm.dll")) { 353 if(file_exists($this->getJavaBin().DS."client".DS."jvm.dll")) {
352 $this->javaJVM = $this->getJavaBin().DS."client".DS."jvm.dll"; 354 $this->javaJVM = $this->getJavaBin().DS."client".DS."jvm.dll";
353 } elseif (file_exists($this->getJavaBin().DS."server".DS."jvm.dll")) { 355 } elseif (file_exists($this->getJavaBin().DS."server".DS."jvm.dll")) {
@@ -362,6 +364,7 @@ class windowsLucene extends windowsService { @@ -362,6 +364,7 @@ class windowsLucene extends windowsService {
362 $this->javaJVM = $javaJVM; 364 $this->javaJVM = $javaJVM;
363 } 365 }
364 } 366 }
  367 + */
365 } 368 }
366 369
367 public function useZendJVM() { 370 public function useZendJVM() {
@@ -392,6 +395,7 @@ class windowsLucene extends windowsService { @@ -392,6 +395,7 @@ class windowsLucene extends windowsService {
392 * @return string 395 * @return string
393 */ 396 */
394 public function getJavaJVM() { 397 public function getJavaJVM() {
  398 + $this->javaJVM = SYSTEM_ROOT . "java\jre\bin\client\jvm.dll";
395 return SYSTEM_ROOT . "java\jre\bin\client\jvm.dll"; // Hard code 399 return SYSTEM_ROOT . "java\jre\bin\client\jvm.dll"; // Hard code
396 //return $this->javaJVM; // TODO: PUT BACK!!! 400 //return $this->javaJVM; // TODO: PUT BACK!!!
397 } 401 }
@@ -413,7 +417,7 @@ class windowsLucene extends windowsService { @@ -413,7 +417,7 @@ class windowsLucene extends windowsService {
413 */ 417 */
414 public function install() { 418 public function install() {
415 $state = $this->status(); 419 $state = $this->status();
416 - if($state == '') { 420 +// if($state == '') {
417 $luceneExe = $this->getLuceneExe(); 421 $luceneExe = $this->getLuceneExe();
418 $luceneSource = $this->getLuceneSource(); 422 $luceneSource = $this->getLuceneSource();
419 $luceneDir = $this->getluceneDir(); 423 $luceneDir = $this->getluceneDir();
@@ -428,7 +432,7 @@ class windowsLucene extends windowsService { @@ -428,7 +432,7 @@ class windowsLucene extends windowsService {
428 // return $response; 432 // return $response;
429 // } 433 // }
430 return $state; 434 return $state;
431 - } 435 +// }
432 436
433 return $state; 437 return $state;
434 } 438 }