|
-
Jul 28th, 2000, 11:00 AM
#1
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|