I have been trying to run the forge client for a very long time and have done a bunch of troubleshooting but nothing seems to work. I have uninstalled and reinstalled everything connecting to java as well as assigned a .Bash_Profile and changed the JAVA_HOME PATH. Whenever I open minecraft forge in 1.18.2 I still get the error message "Couldn't select a valid version of the Java runtime to download" could someone plz help.
Debug Log:
[11:48:39] [main/INFO]: Building optimized datafixer
[11:48:47] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[11:48:49] [Render thread/INFO]: Setting user: SpicyNodle
[11:48:50] [Render thread/INFO]: Backend library: LWJGL version 3.3.1 build 7
[11:48:51] [Render thread/INFO]: Reloading ResourceManager: Default
[11:49:04] [Render thread/WARN]: Missing sound for event: minecraft:item.goat_horn.play
[11:49:04] [Render thread/WARN]: Missing sound for event: minecraft:entity.goat.screaming.horn_break
[11:49:04] [Render thread/INFO]: OpenAL initialized on device CoreAudio Default
[11:49:04] [Render thread/INFO]: Sound engine started
[11:49:05] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/blocks.png-atlas
[11:49:05] [Render thread/INFO]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[11:49:05] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[11:49:05] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[11:49:05] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[11:49:05] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[11:49:05] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[11:49:07] [Render thread/WARN]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[11:49:07] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas
[11:49:07] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[11:49:07] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[11:49:28] [Worker-Bootstrap-4/INFO]: 4256 Datafixer optimizations took 48718 milliseconds
[11:50:06] [Render thread/INFO]: Stopping!