If you use Windows7-64bit version, the utilities tos-locate-jre and tos-install-jni (which calls tos-locate-jre) will report errors, or stop work.
The problem is that regtool can access either the 32bit registry and the 64bit one.
If you installed the 32bit JDK there will be no problem, but if you installed the 64bit one (more logical), regtool could not find the JDK because it scan only the 32bit registry.
In the file tos-locate-jre, line 41 change this:
jversion=`regtool -q get '\\HKLM\\SOFTWARE\\JavaSoft\\Java Development Kit\\CurrentVersion'
with
jversion=`regtool -q -w get '\\HKLM\\SOFTWARE\\JavaSoft\\Java Development Kit\\CurrentVersion'
Add the -w option also in the line 45.
That's all.
Bye
Federico Tramarin