Updating the JRE on Windows Master Installations
On Windows installations, the JRE for AppWorx is installed through a packaged installer like all Windows software. The recommended method for installing or updating to a new JRE in Windows is:
1. Download the appropriate JRE from Sun's JavaSoft site (www.javasoft.com).
2. Stop all the AppWorx Master processes
3. Remove the old version(s) of the JRE from the machine using the "Add or Remove Programs" utility in Windows Control Panel.
4. Install the new JRE and record the directory that the JRE is being installed into. The install may automatically install without telling you where it is putting the software. Typically, it will be located in "C:\Program Files\Java\<VERSION>".
5. When the install completes, edit the 'site/sosite.bat' file in the AppWorx installation directory.
6. Add or change the setting JAVA_HOME in 'sosite.bat' file to reflect the new path to the JRE recorded in step 4.
7. Open a Command Line session and go to the AppWorx installation directory.
8. Invoke the '.\site\sosite.bat' file to set the AppWorx environment.
9. Check the java version by executing:
java -version
If the version is not correct, verify the new JRE is in the PATH.
-------------------------------------------------------------------------------------
Note on how Windows chooses which Java version to run
-------------------------------------------------------------------------------------
If the PATH variable is correct and you are still getting the wrong Java version, the problem is probably due to the fact that Windows
has 2 dummy files in the '%windir%\system32' directory named 'java.exe' and 'javaw.exe'. These will execute whatever Java is indicated
in the 'HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion' registry variable. The easiest way
to correct this is to remove these 2 files from the 'system32' directory. Once they are gone, whatever version of Java is in the PATH or
set in the 'site\sosite.bat' file will be the one executed.
10. Restart the AppWorx Master processes.
11. Once the RMI Server has started, check the latest RMI log which will be located in the %AW_HOME%\log directory and named:
RMIServer_<LONGNUMBER>.log
and verify that the version of Java in the header is correct.