java - Tomcat installation fails with JRockit -
i can't install tomcat on windows server 2008 using apache-tomcat-7.0.67.exe jrockit jvm. i'm able install tomcat oracle jvm. chose "c:\program files (x86)\java\jrockit-jdk1.6.0_45-r28.2.7-4.1.0\jre\bin"
path of jre.it shows message says "no java virtual machine found in folder"
, tomcat setup quits.
from https://svn.apache.org/repos/asf/tomcat/tc8.0.x/trunk/res/tomcat.nsi:
${if} $javahome == "" ${orifnot} ${fileexists} "$javahome\bin\java.exe" ifsilent +2 messagebox mb_ok|mb_iconstop "no java virtual machine found in folder:$\r$\n$javahome" detailprint "no java virtual machine found in folder:$\r$\n$javahome" quit ${endif} strcpy "$javaexe" "$javahome\bin\java.exe" ; need path jvm.dll configure service - uses $javahome call findjvmpath pop $5 ${if} $5 == "" ifsilent +2 messagebox mb_ok|mb_iconstop "no java virtual machine found in folder:$\r$\n$5" detailprint "no java virtual machine found in folder:$\r$\n$5" quit ${endif} ... ; ==================== ; findjvmpath function ; ==================== ; ; find full jvm path, , put result on top of stack ; implicit argument: $javahome ; return empty string if path cannot determined ; function findjvmpath clearerrors ;step one: jre path (program files\java\xxx) strcpy $1 "$javahome" strcpy $2 "$1\bin\hotspot\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\server\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\client\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\classic\jvm.dll" iffileexists "$2" foundjvmdll ;step two: jdk path (program files\xxx\jre) strcpy $1 "$javahome\jre" strcpy $2 "$1\bin\hotspot\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\server\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\client\jvm.dll" iffileexists "$2" foundjvmdll strcpy $2 "$1\bin\classic\jvm.dll" iffileexists "$2" foundjvmdll clearerrors ;step tree: read defaults registry readregstr $1 hklm "software\javasoft\java runtime environment" "currentversion" readregstr $2 hklm "software\javasoft\java runtime environment\$1" "runtimelib" iferrors 0 foundjvmdll strcpy $2 "" foundjvmdll: clearerrors ; put result in stack push $2 functionend
the way read need have bin\java.exe
in jre along jvm.dll in 1 of listed subdirs.
try specify "c:\program files (x86)\java\jrockit-jdk1.6.0_45-r28.2.7-4.1.0\" root instead.
Comments
Post a Comment