Hi Rudra,
Please check the SAP note
2073368 - Compatibility matrix: recommended Java version for Integration Builder tools of SAP Process Integration
As per note Java 8 update 31 and above should work for 64 bit.
What error you are getting while launching the ESR and ID? if its security error then refer the below blogs
Java 8 Update 20->40 - Security Error prevents ESR/ID Opening
Application Blocked by Java Security - SAP PI ESR
regards,
Harish