Carey Brown wrote:In your PATH don't enclose your %JAVA_HOME% stuff in double quotes.
Tim Holloway wrote:2. It is advisable, although not essential, to set the environment variable JAVA_HOME. Point it at the root of the installed (unzipped) JVM directory. JAVA_HOME is a convention, and not - as far as I know - required by the Java specification (which originally didn't even consider environment variables, since not all potential target OS's might have such a thing).
3. Set your PATH to point to the "bin" directory within the JVM root directory. If you're using JAVA_HOME, then "%JAVA_HOME\bin" should go in your PATH. In the Unix/Unix-like OS's, it would be $JAVA_HOME/bin.
Paul Clapham wrote:...And then Microsoft decided that restricting file names to 8 characters with a 3-character extension was a pain. Which it was. So they allowed file names to be as long as you wanted, and they allowed you to have spaces in your file names.