This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

the environment variable 'XDCTOOLS_JAVA_HOME' is set, but does not appear to be a directory containing a 64-bit Java Runtime Environment (1.7 or greater);

There are several occations when I get this error.

1.) I try and open a config file. The program fails with the above error and tells me to close and relaunch the XGConf editor.

2.) I try and compile an example project. I get the error 

/opt/ti/xdctools_3_32_00_06_core/xs.x86_64U: error: can't create session manager: can't find a JVM; the environment variable 'XDCTOOLS_JAVA_HOME' is set, but does not appear to be a directory containing a 64-bit Java Runtime Environment (1.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-amd64'.
gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.

If I go to the terminal and run $echo XDCTOOLS_JAVA_HOME it says

echo $XDCTOOLS_JAVA_HOME
/usr/lib/jvm/java-1.7.0-openjdk-amd64

if I run 

ls /usr/lib/jvm/

I see 


default-java java-1.7.0-openjdk-amd64 java-7-openjdk-amd64 java-8-oracle

I have tried manually setting the environment to each one of these in my bashrc and then sourcing the file yet still no luck. 

I have see the thread at: 

https://e2e.ti.com/support/embedded/tirtos/f/355/t/522505   

but there doesn't seem to be any resolution.

Does anyone have any idea how I can make this editor work?