Page 1 of 1

Tomcat and JAVA 6.0

PostPosted: 26. February 2007 14:05
by hap_zax
I have xampp apache 2.2.4 but i have JAVA sdk 6.0 is there any way i can get tomcat compatibility for xampp and JAVA 6.0?

Thanks

PostPosted: 06. March 2007 20:24
by erl
You have to download
xampp-tomcat-addon-x.x.x-x.x.x.zip or xampp-tomcat-addon-x.x.x-x.x.x.exe (i'm not sure that exe will do, because i dont try) from http://sourceforge.net/project/showfile ... _id=113693 then unzip/install it,and open \install\javaaddon.php

You have to find :
Code: Select all
$t = new Registry;
$key = $t->Read('HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5\JavaHome');

Or something like this, and change it for
Code: Select all
$t = new Registry;
$key = $t->Read('HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome');

PostPosted: 07. March 2007 06:10
by Shane0
use the zip version of the Tomcat addon instead of the installer. After you extract it go to the install directory and you will see a file named javaaddon.php. Edit it (notepad will work)...you will find the following line:

$key = $t->Read('HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome');

Change the 1.5 to 1.6, save, and run setup_xampp.bat and it should work!