After deleting all Java installations (multiple Java versions were present) in my Mac from
/System/Library/Frameworks/JavaVM.framework/
any new installation of JRE fails with following exception (from /var/log/install.log)
Jan 16 13:28:51 MacBook-LT installd[1171]: ./postinstall: Error occurred during initialization of VM
Jan 16 13:28:51 MacBook-LT installd[1171]: ./postinstall: java.lang.NullPointerException
Jan 16 13:28:51 MacBook-LT installd[1171]: ./postinstall: at java.util.Hashtable.put(Hashtable.java:514)
Jan 16 13:28:51 MacBook-LT installd[1171]: ./postinstall: at java.lang.System.initProperties(Native Method)
Jan 16 13:28:51 MacBook-LT installd[1171]: ./postinstall: at java.lang.System.initializeSystemClass(System.java:1119)
How to recover from this error?