Error Setting Java Environment Variables
        Posted  
        
            by Cherie Riesberg
        on Geeks with Blogs
        
        See other posts from Geeks with Blogs
        
            or by Cherie Riesberg
        
        
        
        Published on Fri, 11 Feb 2011 23:40:46 GMT
        Indexed on 
            2011/02/12
            7:26 UTC
        
        
        Read the original article
        Hit count: 227
        
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:  | 
| ...  | 
© Geeks with Blogs or respective owner