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.

Was it helpful?

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.

  1. Open Windows Explorer
  2. Right click "My Computer"
  3. Select "Properties"
  4. Go to "Advanced" tab.
  5. Click Environment Variables
  6. Click "New... (or find the existing JAVA_HOME)
  7. Set your JAVA_HOME

NOTE: You can also get to the System Properties through Control Panel

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top