Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Uninstall and Microsoft Defender for Endpoint flagging

User_FOIC9Oct 5 2022

These are the things I tried
Step 1 - I ran a PowerShell script to find the existing version of Java installed on my machine and it came up with this list. So, it says that I have 3 versions of Java.

Computer Java Version
-------- -----------
WSHVDIB-0301 {8.0.3410.10, 6.0.450.6, 7.0.800.15}
WSHVDIB-0301 {8.0.3410.10, 6.0.450.6, 7.0.800.15}
WSHVDIB-0301 {8.0.3410.10**, 6.0.450.6, 7.0.800.15}**

The ones marked in bold are the ones that should be removed as the 8.0.3410.10 should stay. As, this is a newer version, and it is safe. (The program I wrote will keep 8.0.3410.10 version and will remove all the other versions).

Step 2 - I tried going through control panel\uninstall programs and I could not find any Java versions installed. So, I ran my script to uninstall all versions except 341 and it came back with none and there was no Java.

Step 3 - So, I manually downloaded the Java uninstall tool (JavaUninstallTool.exe) from Oracle and ran that and it said there is no Java on this computer. This is the message I got.
0?ui=2&ik=d3126878d3&attid=0.1&permmsgid=msg-f:1745879354493661140&th=183a9c05d9486fd4&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ_h0pZ218Ujw2TtTkAHkuEn1ZHKeUNW2YH5wYFDryv1AZrBEGsqA1YBjIo0XON4GN6VvfsHbvD0xwUzMdqKJ61zKWRrtVYl0PVuH_Icz5r3LgeUiR-JVHyBIjQ&disp=emb

Step 4 - I ran a registry check to see whether there is any JAVA uninstall key that is left behind and it came back with this for version 8.0.3410.10

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F32180341F0}

But for the other 2 versions I did not get anything in the registry key. So, now in the case of 8.0.3410.10 it has a trace of the registry key under the uninstall section, which may be the one that might be flagging as Java being present, which I am not sure.
Why is that the Java folders are being seen under Program files even thought it was uninstalled?
C:\Program Files (x86)\Java

image.pngWhy would Microsoft Defender flag that these older versions are present when they are not in the Control Panel and only I see that they are here in the Program Files folder\Java?
Any suggestions or thoughts please? Appreciate your response and thank you ahead of time.

Comments
Post Details
Added on Oct 5 2022
0 comments
649 views