Then I installed jre's latest version https://www.java.com/tr/download/manual.jsp done everything perfectly still doesn't work.
Same thing didn't happen when I installed jdk19 on windows.
Those are logs of legacyL:
[22:49:11] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, lineBreaker30113, --version, Forge 1.18.2, --gameDir, /home/linebreaker30113/.minecraft, --assetsDir, /home/linebreaker30113/.minecraft/assets, --assetIndex, 1.18, --uuid, 983e915485a8391086b74b15d6b1f704, --accessToken, ❄❄❄❄❄❄❄❄, --clientId, , --xuid, , --userType, legacy, --versionType, modified, --width, 925, --height, 530, --launchTarget, forgeclient, --fml.forgeVersion, 40.2.21, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914]
[22:49:11] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Microsoft
[22:49:12] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/linebreaker30113/.minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=CLIENT
[22:49:14] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/linebreaker30113/.minecraft/libraries/net/minecraftforge/fmlcore/1.18.2-40.2.21/fmlcore-1.18.2-40.2.21.jar is missing mods.toml file
[22:49:14] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/linebreaker30113/.minecraft/libraries/net/minecraftforge/javafmllanguage/1.18.2-40.2.21/javafmllanguage-1.18.2-40.2.21.jar is missing mods.toml file
[22:49:14] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/linebreaker30113/.minecraft/libraries/net/minecraftforge/lowcodelanguage/1.18.2-40.2.21/lowcodelanguage-1.18.2-40.2.21.jar is missing mods.toml file
[22:49:14] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/linebreaker30113/.minecraft/libraries/net/minecraftforge/mclanguage/1.18.2-40.2.21/mclanguage-1.18.2-40.2.21.jar is missing mods.toml file
[22:49:15] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 3 dependencies adding them to mods collection
[22:49:23] [main/INFO] [mixin/]: Compatibility level set to JAVA_17
[22:49:24] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector]
[22:49:24] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, Forge 1.18.2, --gameDir, /home/linebreaker30113/.minecraft, --assetsDir, /home/linebreaker30113/.minecraft/assets, --uuid, 983e915485a8391086b74b15d6b1f704, --username, lineBreaker30113, --assetIndex, 1.18, --accessToken, ❄❄❄❄❄❄❄❄, --clientId, , --xuid, , --userType, legacy, --versionType, modified, --width, 925, --height, 530]
[22:49:24] [main/INFO] [co.ab.sa.co.Saturn/]: Loaded Saturn config file with 4 configurable options
[22:49:24] [main/WARN] [CanaryConfig/]: Mod 'pluto' attempted to override option 'mixin.world.player_chunk_tick', which doesn't exist, ignoring
[22:49:24] [main/INFO] [Canary/]: Loaded configuration file for Canary: 117 options available, 0 override(s) found
[22:49:24] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 28 options available, 0 override(s) found
[22:49:25] [main/INFO] [Sodium Extra Config/]: Loaded configuration file for Sodium Extra: 30 options available, 0 override(s) found
[22:49:25] [main/WARN] [ModernFixConfig/]: ModelDataManager bugfixes have been disabled to prevent broken rendering with Rubidium installed. Please migrate to Embeddium.
[22:49:25] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix 5.17.0+mc1.18.2: 78 options available, 3 override(s) found
[22:49:25] [main/WARN] [ModernFix/]: Option 'mixin.bugfix.model_data_manager_cme' overriden (by mods [rubidium]) to 'false'
[22:49:25] [main/WARN] [ModernFix/]: Option 'mixin.bugfix.item_cache_flag' overriden (by mods [canary]) to 'false'
[22:49:25] [main/WARN] [ModernFix/]: Option 'mixin.perf.thread_priorities' overriden (by mods [smoothboot]) to 'false'
[22:49:25] [main/INFO] [ModernFix/]: Applying Nashorn fix
[22:49:25] [main/INFO] [ModernFix/]: Applied Forge config corruption patch
[22:49:34] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.2).
[22:49:35] [main/INFO] [Smooth Boot (Reloaded)/]: Smooth Boot (Reloaded) config initialized
[22:49:40] [pool-3-thread-1/INFO] [minecraft/Bootstrap]: ModernFix reached bootstrap stage (36.56 s after launch)
[22:49:41] [pool-3-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getNeighborPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin
[22:49:41] [pool-3-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin
[22:49:41] [pool-3-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into m_60823_ from com.abdelaziz.canary.mixin.block.flatten_states.BlockStateBaseMixin
[22:49:41] [pool-3-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getOpacityIfCached from ca.spottedleaf.starlight.mixin.common.blockstate.BlockStateBaseMixin
[22:49:41] [pool-3-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into isConditionallyFullOpaque from ca.spottedleaf.starlight.mixin.common.blockstate.BlockStateBaseMixin
[22:49:42] [pool-3-thread-1/WARN] [mixin/]: Static binding violation: PRIVATE @Overwrite method m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded.
[22:49:42] [pool-3-thread-1/WARN] [mixin/]: Method overwrite conflict for m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin, previously written by com.abdelaziz.saturn.mixin.leaks.biome_temperature_cache.BiomeMixin. Skipping method.
[22:49:46] [pool-3-thread-1/INFO] [minecraft/Bootstrap]: Vanilla bootstrap took 5938 milliseconds
[22:49:59] [Render thread/WARN] [minecraft/VanillaPackResources]: Assets URL 'union:/home/linebreaker30113/.minecraft/libraries/net/minecraft/client/1.18.2-20220404.173914/client-1.18.2-20220404.173914-srg.jar%2374!/assets/.mcassetsroot' uses unexpected schema
[22:49:59] [Render thread/WARN] [minecraft/VanillaPackResources]: Assets URL 'union:/home/linebreaker30113/.minecraft/libraries/net/minecraft/client/1.18.2-20220404.173914/client-1.18.2-20220404.173914-srg.jar%2374!/data/.mcassetsroot' uses unexpected schema
[22:49:59] [Render thread/INFO] [mojang/YggdrasilAuthenticationService]: Environment: ElyEnvironment[name=ely,authHost=https://authserver.ely.by/auth,accountsHost=https://account.ely.by/api/mojang,sessionHost=https://account.ely.by/api/minecraft/session,servicesHost=<null>]
[22:49:59] [Render thread/INFO] [mojang/YggdrasilMinecraftSessionService]: CAFixer is not available: java.lang.NoClassDefFoundError: com/turikhay/caf/util/Logger
[22:49:59] [Render thread/INFO] [minecraft/Minecraft]: Setting user: lineBreaker30113
[22:49:59] [Render thread/INFO] [ModernFix/]: Bypassed Mojang DFU
[22:50:00] [Render thread/INFO] [minecraft/Minecraft]: Backend library: LWJGL version 3.2.2 SNAPSHOT
[22:50:06] [modloading-worker-0/INFO] [pneumaticcraft/]: Thirdparty integration activated for [jei,botania,curios,patchouli]
[22:50:07] [modloading-worker-0/INFO] [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 40.2.21, for MC 1.18.2 with MCP 20220404.173914
[22:50:07] [modloading-worker-0/INFO] [ne.mi.co.MinecraftForge/FORGE]: MinecraftForge v40.2.21 Initialized
[22:50:14] [Render thread/INFO] [ModernFix/]: Instantiating Mojang DFU
[22:50:16] [Render thread/INFO] [ne.mi.re.GameData/]: Potentially Dangerous alternative prefix `minecraft` for name `milk`, expected `forge`. This could be a intended override, but in most cases indicates a broken mod.
[22:50:16] [Render thread/INFO] [ne.mi.re.GameData/]: Potentially Dangerous alternative prefix `minecraft` for name `flowing_milk`, expected `forge`. This could be a intended override, but in most cases indicates a broken mod.
[22:50:24] [Render thread/WARN] [AE2:C/]: Unable to find class com.simibubi.create.foundation.ponder.PonderWorld. Integration with PonderJS disabled.
[22:50:25] [Render thread/INFO] [mojang/NarratorLinux]: Narrator library successfully loaded
[22:50:26] [Render thread/WARN] [patchouli/]: Could not locate JEI keybindings, lookups in books may not work
[22:50:29] [Render thread/INFO] [ModernFix/]: Invalidating pack caches
[22:50:29] [Render thread/INFO] [minecraft/ReloadableResourceManager]: Reloading ResourceManager: Default, Mod Resources
[22:50:29] [Thread-0/INFO] [ModernFix/]: Please use /mfrc to reload any changed mod config files
If you want I can carry the question to legacyL's discord. If you are unsure before updating jdk minecraft worked.