Hi,

I try to retrieve the path of my java interpreter from the window registry and then concatenate this path with some other strings so as to run my java program. I always loss the second part of my string. This is my code:

' get the path from registry
Dim javaBuffer as String

javaBuffer = GetStringValue("HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.2", "JavaHome")

javaBuffer = Trim(javaBuffer)
tempvar = javaBuffer + "\bin\java -classpath..."

'run my java program
Shell tempvar (+ some other arguments)

I notice that tempvar does not contain "\bin\java..." at all even if I do the simple string concatenation as shown in the code above. The value obtained from the registy, though, is correct. Any ideas?

maria.