Move the WITH_JAVA_AWT bits into the ! WITHOUT_JAVA branch, that is, enable this only when Java is enabled. PR: 111544