Posted February 5, 20223 yr Trying to update to the latest version and I keep receiving the following error. Exception in thread "main" java.lang.IllegalStateException: Could not find forge-1.18.1-39.0.59 in classpath at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonUserdevLaunchHandler.lambda$findJarOnClasspath$2(CommonUserdevLaunchHandler.java:60) at java.base/java.util.Optional.orElseThrow(Optional.java:403) Checking several other mdk downloads, the referenced forge version is the same as the mdk name but version 39.0.66 references 39.0.59 in the build.gradle Is this just a typo in the mdk file or have I misunderstood how this works?
February 5, 20223 yr Author Just now, diesieben07 said: Did you regenerate the run configurations for your IDE? Yes, after updating the forge version I'm doing ./gradlew genIntelliJruns --refresh-dependencies After doing some further testing, it seems IntelliJ is caching the classpath data somewhere - if I update the forge version, run the above command it fails with the error. If I then just restart IntelliJ the project builds without issue. Is it normal to need to restart IntelliJ after updating forge?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.