Page 1 of 1

wandora and windows 2000

PostPosted: Tue Nov 11, 2008 4:14 pm
by soltyr
Hello

I was just downloading wandora and for some reason it is not starting at all.
I have windows 2000 as os and i also downloaded the new java version.
My colleague has the same java version but he has windows xp on his pc and there wandora is working perfectly.

So maybe anyone has a suggestion how i can make wandora work on my windows 2000 pc.

Thank you in advance.

soltyr

PostPosted: Wed Nov 12, 2008 4:42 pm
by akivela
Hello Soltyr

Windows 2000 limits the size of command line string to 2047 characters [1]. Wandora's SetClasspath.bat script adds every JAR package separately to the WANDORACLASSES environment variable. When Wandora.bat script then uses this rather big environment variable WANDORACLASSES, the command line length is exceeded and command dies silently. To solve the problem, use asterisk (*) character to add multiple JARs at the same time to the WANDORACLASSES environment variable. Below is a code snippet that replaces current SetClasspath.bat script. Copying the code and placing it to empty text document replacing old bin/SetClasspath.bat should fix the problem.

Code: Select all
set WANDORACLASSES=classes
set WANDORACLASSES=%WANDORACLASSES%;resources
set WANDORACLASSES=%WANDORACLASSES%;lib/*
set WANDORACLASSES=%WANDORACLASSES%;lib/fmj/*
set WANDORACLASSES=%WANDORACLASSES%;lib/jmbox/*
set WANDORACLASSES=%WANDORACLASSES%;lib/jena/*
set WANDORACLASSES=%WANDORACLASSES%;lib/MRJToolkitStubs.zip
set WANDORACLASSES=%WANDORACLASSES%;lib/mstor/*
set WANDORACLASSES=%WANDORACLASSES%;lib/jtidy/*
set WANDORACLASSES=%WANDORACLASSES%;lib/gdata/*
set WANDORACLASSES=%WANDORACLASSES%;lib/jetty/*
set WANDORACLASSES=%WANDORACLASSES%;lib/opencalais.zip


I assume this problem will be fixed in next Wandora release (December 2008). Till then you have to fix the bin/SetClasspath.bat manually.

Kind regards,
Aki Kivelä
Wandora Team


[1] http://support.microsoft.com/kb/830473