Version Differences for Changing JAVA HOME on Agents

(Started topic)
(Adding manual method)
Line 1:
  There may be cases where a different version of '''Java''' than what the agent was installed with, need to be used. For example, the agents were accidentally installed with version 6, but the product being built needs version 5, so the agents need changed to version 5. Or, another example, a company-wide policy was put in place to use newer versions, so all the agents need to use the new version, respectively. Luckily, there are somewhat easy ways to do this.    There may be cases where a different version of '''Java''' than what the agent was installed with, need to be used. For example, the agents were accidentally installed with version 6, but the product being built needs version 5, so the agents need changed to version 5. Or, another example, a company-wide policy was put in place to use newer versions, so all the agents need to use the new version, respectively. Luckily, there are somewhat easy ways to do this. 
       
- = Easiest Method =   + = Automatic Method (Easiest) =  
       
  A simple re-install (fake upgrade) of the agent can easily fix this, as running the installer will reconfigure some settings for the agent (for example, a different JAVA_HOME, different agent install path, x86 to x64 architecture on Java, etc.).    A simple re-install (fake upgrade) of the agent can easily fix this, as running the installer will reconfigure some settings for the agent (for example, a different JAVA_HOME, different agent install path, x86 to x64 architecture on Java, etc.). 
Line 12:
  # Give the installer the path to the agent.    # Give the installer the path to the agent. 
  # When prompted to upgrade the agent, input '''Y'''.    # When prompted to upgrade the agent, input '''Y'''. 
    + # Give the ''JAVA_HOME'' path for the agent (do NOT include the \bin\ directory).  
    + # Answer any remaining questions (including information about the Windows Service). You should be able to answer these questions by using your backed up installed.properties file as a template.  
       
    + After the installation completes (and possibly the Windows Service installation), you should be able to bring your agent back online with the new settings in place.  
       
    + = Manual Method (Hardest) =  
       
    + If a simple reinstall of the agent cannot be done, you can still manually change the settings on the agent to point to the new Java...however this opens up room for human error if not configured correctly.  
       
  #     #