Download older version of java from the following address:

https://www.oracle.com/technetwork/java/archive-139210.html