Friday, February 11, 2011 #

Error Setting Java Environment Variables

Problem

Not exactly SharePoint, but the issue is when setting the %JAVA_HOME% environment variable, Java installs to the Program Files directory by default.  The space in the path seems to stop the variable from being read.  You get an error.

Solution

Change Program Files to Progra~1, so the path now looks like this:

C:\Progra~1\Java\jdk1.6.0_23\bin\;

You can type %JAVA_HOME%\bin\javac to test.  Output should look like this:

Usage: javac <options> <source files>
where possible options include:
...

Posted On Friday, February 11, 2011 4:40 PM | Feedback (0)

Copyright © Cherie Riesberg

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski