Knowledgebase Home Page  >  RapidSpell Web Java
Search the Knowledge Base
Can RapidSpell Web be used with PHP pages?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=95&catId=45

Options

Print this page
Email this to a friend
Using a Java Bridge it is possible to use RapidSpell Web (version 2.4 up, due for release late 2005) on PHP pages.
 
Some preliminary notes:
 
Unless you know the Java bridge is setup and works fine on your machine, the following tips will be helpful.
 
If you install PHP from the Windows installer you probably won't get the extensions (which you need) - but php_java.DLL and php_java.jar can be retrieved later from the non installer download - then copied to the extensions dir (eg. C:\PHP\extensions).  Also If adding java extension DLL separately with IIS, put the DLL in the system32 dir.
 
JDK 1.5 (or 5 as they call it) must be used on the machine (seems to be a requirement of the bridge Jar).
 
Servlet.jar needs to be on classpath (eg. if you add it to the extensions dir, specify
 java.class.path = "c:\php\extensions\php_java.jar;c:\php\extensions\RapidSpellWeb.jar;c:\php\extensions\servlet.jar"
in the php.ini file).
 

 
Setup:
 
1. php.ini (in c:\windows) should have this block added (amended)
 
[Java]
extension=php_java.dll
java.class.path = "c:\php\extensions\php_java.jar;c:\php\extensions\RapidSpellWeb.jar;c:\php\extensions\servlet.jar"
java.home = "C:\Program Files\Java\jdk1.5.0_05"
java.library = "C:\Program Files\Java\jdk1.5.0_05\jre\bin\server\jvm.dll"
java.library.path = c:\PHP\extensions\
 
Note the RapidSpellWeb.jar and RapidSpellMDict.jar are in the extension directory, as is the servlet.jar (this can be obtained from a Tomcat install for example).
 
 
2. Copy index.php and popup.php to a directory on the web server and visit index.php
 
 
If you do have any problems, email support@keyoti.com and we'll help.

Related Questions:

Attachments: