It's probably detecting it in a System Restore point. To get rid of that you'll have to turn off System Restore and restart it.
To be sure, where's does it say the instance of Java 1.5x is located.
Hands-on: Samsung Galaxy Note 8 review
Be inspired by powerful National Theatre posters from the past 50 years
How to use the new Photos, Notes and Safari features in macOS High Sierra
Galaxy Note 8 : design, caractéristiques techniques, date de sortie