JAVA_HOME is not changed in Sierra
I have upgraded to Sierra 10.12.1 and just found out that the JAVA_HOME is changed. Instead of /System/Library/Frameworks/JavaVM.Framework/Home it is now /System/Library/Frameworks/JavaVM.Framework/Versions/Current and the java command is in folder Commands instead of bin. The problem is that the external program has the JAVA_HOME path set as earlier one and expect Java command in bin folder under it. I tried using soft link 'ln -sf' but that also is not permitted. Any help is appreciated.
iOS 10.1.1, macOS Sierra 10.12.1