Sure.
Remove All Java Installations and Use Built-in Java :
Step 1: Uninstall All Java Versions
- Press Win + R, Type appwiz.cpl and hit Enter, this opens the Programs & Features menu.
- Look for anything with "Java" in the name (e.g., "Java 8 Update").
- Right-click each and choose Uninstall.
- Once done, restart your PC.
Step 2: Delete Leftover Java Folders (if any)
- Open File Explorer.
- Navigate to: C:\Program Files\Java
- If a folder exists here, delete it.
Tell Minecraft to Use Built-in Java
Step 1: Open Minecraft Launcher
- Launch the Minecraft Launcher.
- Click the "Installations" tab at the top.
- Find your version (e.g., "Latest release"), click the three dots > Edit.
- Click "More Options" at the bottom.
Step 2: Confirm Java Path
- Make sure the Java Executable field is set to:
C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-gamma\bin\javaw.exe
- If it’s blank, paste the path above, then click Save.
After trying above steps, please reach out to me if you have any doubts or issues