I need to test Vivado with a different version of JAVA Runtime Environment (JRE) than the version installed and used in the Vivado tool.
However, I do not want to change the existing installation by replacing the existing JRE.
I have tried to create a separate directory and point to it using the MYVIVADO environment variable, but this does not seem to work.
The JRE installed with Vivado is located under <Vivado Install>/tps/<platform>/jre.
For example: C:\Xilinx\Vivado\2014.1\tps\win64\jre
Vivado will use the JRE in this directory.
In Vivado 2014.1 and earlier, the JRE in the install directory is loaded before the MYVIVADO variable is checked during software initialization.
In order to use a JRE from another location, you could do the following:
Note: This is not an ideal solution as it requires an edit to the install area.
A request has been made to allow the JRE to be picked up using the MYVIVADO option without any other changes.
This change will apply to all users of this install of Vivado.
A more viable solution might be to have a conditional statement that checks for the existence of %MYVIVADO%/tps/%RDI_PLATFORM%/jre before making the change.
This issue has been fixed in Vivado 2014.2.