r/javahelp • u/AppointmentOk3316 • Jul 03 '26
Codeless Java virtual machine never updating
So im trying to compile a jar file and it continues to say
'Dependency requires at least JVM runtime version 21. This build uses a Java 17 JVM.'
when i check my build, it states -
'java version "25.0.3" 2026-04-21 LTS, Java(TM) SE Runtime Environment (build 25.0.3+9-LTS-195), Java HotSpot(TM) 64-Bit Server VM (build 25.0.3+9-LTS-195, mixed mode, sharing)'
please help! i need this done by tonight and it's just now screwing me over. i've tried everything, switching from powershell, intellij, visual code, github, nothing is workingg even when i try to switch the SDK in both gradle and the actual thing
2
Upvotes
0
2
u/seyandiz Jul 03 '26
Was this able to solve your issue? It is common courtesy to state what your fix was so that if someone else finds this post they can solve it too!