Yusuf U�ur Soysal wrote:

Tomcat started successfully, but i couldn't figured
out how to use xindice in my project. How will i going
to access xindice?


Addressbook and Guide examples have a code showing you how to do it.


I tried the examples in the
developers guide, but they didn't seem to work out
correctly. Sometimes i even get NoClassDefFoundError
and other Exceptions.



Check the classpath. Attached run.bat worked for me - place it instead of xml-xindice\java\examples\guide



In the documentations, they said that, Xindice have
some problems with sdk 1.4. So i installed sdk 1.3 as
well, but get the same problems. So, what should i do?



No, that's not correct. It works fine with 1.4

Vadim

@echo off
rem find XINDICE_HOME
set _XINDICE_HOME=%~dp0..\..\..
if not exist %_XINDICE_HOME%\config\commands.xml goto noXindiceHome
goto checkJava

:noXindiceHome
echo XINDICE_HOME is not set and ant could not be located. Please set 
XINDICE_HOME.
goto end

:checkJava
if "%JAVACMD%" == "" set JAVACMD=java

set LOCALCLASSPATH=%_XINDICE_HOME%\build\guide-classes
for %%i in (%_XINDICE_HOME%\java\lib\*.jar) do call %_XINDICE_HOME%\bin\lcp.bat 
%%i
for %%i in (%_XINDICE_HOME%\dist\*.jar) do call %_XINDICE_HOME%\bin\lcp.bat %%i

if "%JAVA_HOME%" == "" goto runAnt
if exist %JAVA_HOME%\lib\tools.jar call %_XINDICE_HOME%\bin\lcp.bat 
%JAVA_HOME%\lib\tools.jar
if exist %JAVA_HOME%\lib\classes.zip call %_XINDICE_HOME%\bin\lcp.bat 
%JAVA_HOME%\lib\classes.zip

:runAnt
%JAVACMD% -cp %LOCALCLASSPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9

:end
set LOCALCLASSPATH=

Reply via email to