Turns out it didn't like the spaces in the path, so I replaced 'Program Files' with 'Progra~1', so the full path read
C:\Progra~1\Java\jdk1.6.0_07
Question
This might be a simple problem, but I'm trying to set my java_home environmental variable to my JDK directory, so I can run a command in the command prompt to copy a WSDL file and save it locally. I currently have my JAVA_HOME path set as my JDK installation directory, but when I run the command in the command prompt I'm still getting the error
Please first set JAVA_HOME environment variable, it's jdk installation directoy
I've tried closing the console, retyping the java_home path, and trying again but the error remains. I've restarted my machine after setting the path but no luck. I've looked at other posts and can't see any information that has worked so far. I'm running XP. Thanks in advanced.
Solution
Turns out it didn't like the spaces in the path, so I replaced 'Program Files' with 'Progra~1', so the full path read
C:\Progra~1\Java\jdk1.6.0_07
OTHER TIPS
Add JAVA_HOME to System Variables.
These instructions might be slightly off, I haven't been on XP in a while.
NOTE: You can also get to the System Properties through Control Panel