anchor.diff:  do_configure_prepend() {
   	# Java
   	if ${@bb.utils.contains('PACKAGECONFIG','java','true','false',d)}; then
  -		export JAVA_HOME="${STAGING_LIBDIR}/jvm/java-8-openjdk"
  +		export JAVA_HOME="${JDK_HOME}"
   	fi
   }
   
   do_compile_prepend() {
   	# Java
   	if ${@bb.utils.contains('PACKAGECONFIG','java','true','false',d)}; then
  -		export JAVA_HOME="${STAGING_LIBDIR}/jvm/java-8-openjdk"
  +		export JAVA_HOME="${JDK_HOME}"
   	fi
   }
   
  
positive.code: 
      return jdk_arch
  
  ## Java ##
  JAVA_LIB_DIR = "${B}/bindings/java/"
  JDK_ARCH = "${@get_jdk_arch(d)}"
  
  PACKAGECONFIG ??= "java bluetooth"
  PACKAGECONFIG[java] = "-Denable_java_binding:BOOL=ON -DJDK_ARCH=${JDK_ARCH}, -Denable_java_binding:BOOL=OFF, openjdk-8, azure-iot-gateway-sdk-java-binding"
  
negative.code: 
  ## Java ##
  def get_jdk_arch(d):
      jdk_arch = bb.data.getVar('TRANSLATED_TARGET_ARCH', d, True)
  
      if jdk_arch == "x86-64":
          jdk_arch = "amd64"
  